@hugoalh/github-sodium
An ECMAScript (JavaScript & TypeScript) module to provide an easier and simplified method for encrypt GitHub secrets.
Science Score: 44.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (7.3%) to scientific vocabulary
Keywords
Keywords from Contributors
Repository
An ECMAScript (JavaScript & TypeScript) module to provide an easier and simplified method for encrypt GitHub secrets.
Basic Info
Statistics
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 25
Topics
Metadata Files
README.md
GitHub Sodium (ES)
An ECMAScript (JavaScript & TypeScript) module to provide an easier and simplified method for encrypt GitHub secrets.
🔰 Begin
🎯 Targets
| Targets | Remote | JSR | NPM | |:--|:-:|:-:|:-:| | Bun >= v1.1.0 | ❌ | ✔️ | ✔️ | | Deno >= v2.1.0 | ✔️ | ✔️ | ✔️ | | NodeJS >= v20.9.0 | ❌ | ✔️ | ✔️ |
[!NOTE] - It is possible to use this module in other methods/ways which not listed in here, however those methods/ways are not officially supported, and should beware maybe cause security issues.
#️⃣ Resources Identifier
- Remote - GitHub Raw:
https://raw.githubusercontent.com/hugoalh/github-sodium-es/{Tag}/mod.ts - JSR:
[jsr:]@hugoalh/github-sodium[@{Tag}] - NPM:
[npm:]@hugoalh/github-sodium[@{Tag}]
[!NOTE] - For usage of remote resources, it is recommended to import the entire module with the main path
mod.ts, however it is also able to import part of the module with sub path if available, but do not import if:
- it's path has an underscore prefix (e.g.:
_foo.ts,_util/bar.ts), or- it is a benchmark or test file (e.g.:
foo.bench.ts,foo.test.ts), or- it's symbol has an underscore prefix (e.g.:
_bar,_foo).These elements are not considered part of the public API, thus no stability is guaranteed for them. - For usage of JSR or NPM resources, it is recommended to import the entire module with the main entrypoint, however it is also able to import part of the module with sub entrypoint if available, please visit the file
jsr.jsoncpropertyexportsfor available sub entrypoints. - It is recommended to use this module with tag for immutability.
🛡️ Runtime Permissions
This module does not request any runtime permission.
🧩 APIs
ts class GitHubSodiumSealer { constructor(publicKey: string); encrypt(value: string): string; }ts class GitHubSodiumSealerExtend extends GitHubSodiumSealer { constructor(publicKey: string, keyID: string); encryptToRequestBody(value: string): GitHubRESTSetSecretRequestBody; get keyID(): string; static fromJSON(input: JSONObject): GitHubSodiumSealerExtend; static fromResponse(input: Response): Promise<GitHubSodiumSealerExtend>; }ts interface GitHubRESTSetSecretRequestBody { encrypted_value: string; key_id: string; }
[!NOTE] - For the full or prettier documentation, can visit via: - Deno CLI
deno doc- JSR
✍️ Examples
ts new GitHubSodiumSealer("2Sg8iYjAxxmI2LvUXpJjkYrMxURPc8r+dB7TJyvv1234").encrypt("plain-text-secret");
Owner
- Name: hugoalh
- Login: hugoalh
- Kind: user
- Location: Everywhere
- Company: @hugoalh-studio
- Twitter: hugoalhofficial
- Repositories: 12
- Profile: https://github.com/hugoalh
Lead of @hugoalh-studio; Full time software developer; Part time freelancer
Citation (CITATION.cff)
# yaml-language-server: $schema=https://citation-file-format.github.io/1.2.0/schema.json cff-version: "1.2.0" title: "GitHub Sodium (ES)" message: "If you use this software, please cite it using the metadata from this file." type: "software" authors: - name: "hugoalh" repository-code: "https://github.com/hugoalh/github-sodium-es" keywords: - "ecmascript" - "ecmascript-module" - "es" - "es-module" - "esm" - "esmodule" - "github" - "javascript" - "js" - "sodium" - "ts" - "typescript" license: "MIT"
GitHub Events
Total
- Create event: 6
- Issues event: 2
- Release event: 1
- Delete event: 8
- Issue comment event: 10
- Push event: 26
- Pull request event: 13
Last Year
- Create event: 6
- Issues event: 2
- Release event: 1
- Delete event: 8
- Issue comment event: 10
- Push event: 26
- Pull request event: 13
Committers
Last synced: 6 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| hugoalh | 3****h | 260 |
| dependabot[bot] | 4****] | 111 |
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 1
- Total pull requests: 102
- Average time to close issues: 2 days
- Average time to close pull requests: 5 days
- Total issue authors: 1
- Total pull request authors: 1
- Average comments per issue: 4.0
- Average comments per pull request: 0.93
- Merged pull requests: 8
- Bot issues: 0
- Bot pull requests: 102
Past Year
- Issues: 1
- Pull requests: 20
- Average time to close issues: 2 days
- Average time to close pull requests: 13 days
- Issue authors: 1
- Pull request authors: 1
- Average comments per issue: 4.0
- Average comments per pull request: 0.9
- Merged pull requests: 2
- Bot issues: 0
- Bot pull requests: 20
Top Authors
Issue Authors
- dependabot[bot] (1)
- lisahns (1)
Pull Request Authors
- dependabot[bot] (98)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- npm 42 last-month
- Total dependent packages: 3
- Total dependent repositories: 2
- Total versions: 25
- Total maintainers: 1
npmjs.org: @hugoalh/github-sodium
A module to provide an easier and simplified method for encrypt GitHub secrets.
- Homepage: https://github.com/hugoalh/github-sodium-es#readme
- License: MIT
-
Latest release: 5.1.0
published about 1 year ago
Rankings
Maintainers (1)
Dependencies
- actions/checkout v3.3.0 composite
- hugoalh/scan-virus-ghaction v0.6.4 composite
- 105 dependencies
- @types/libsodium-wrappers ^0.7.10 development
- @types/node ^18.11.19 development
- eslint ^8.33.0 development
- eslint-plugin-only-warn ^1.1.0 development
- typescript ^4.9.5 development
- @hugoalh/advanced-determine ^7.2.0
- libsodium-wrappers ^0.7.10