{"id":13594816,"url":"https://github.com/unjs/uncrypto","last_synced_at":"2025-06-10T22:41:50.704Z","repository":{"id":65727104,"uuid":"598300566","full_name":"unjs/uncrypto","owner":"unjs","description":"Single API for Web Crypto API and Crypto Subtle working in Node.js, Browsers and other runtimes","archived":false,"fork":false,"pushed_at":"2024-01-29T20:37:20.000Z","size":143,"stargazers_count":146,"open_issues_count":10,"forks_count":9,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-01-30T13:11:19.098Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/unjs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-02-06T20:27:11.000Z","updated_at":"2024-02-01T11:56:12.239Z","dependencies_parsed_at":"2023-11-23T23:22:57.532Z","dependency_job_id":"5c2c19bf-d8e9-4d4e-a46c-41d595b654a0","html_url":"https://github.com/unjs/uncrypto","commit_stats":{"total_commits":10,"total_committers":2,"mean_commits":5.0,"dds":0.4,"last_synced_commit":"b9b5a885f034730173131e64c2cfa3418c95e7f5"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unjs%2Funcrypto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unjs%2Funcrypto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unjs%2Funcrypto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unjs%2Funcrypto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/unjs","download_url":"https://codeload.github.com/unjs/uncrypto/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248020592,"owners_count":21034459,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T16:01:39.513Z","updated_at":"2025-04-09T10:32:00.614Z","avatar_url":"https://github.com/unjs.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# uncrypto\n\n[![npm version][npm-version-src]][npm-version-href]\n[![npm downloads][npm-downloads-src]][npm-downloads-href]\n[![Github Actions][github-actions-src]][github-actions-href]\n[![Codecov][codecov-src]][codecov-href]\n\nThis library provides a single api to use [web-crypto](https://developer.mozilla.org/en-US/docs/Web/API/Web_Crypto_API) and [Subtle Crypto](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto) in both Node.js using [Crypto Module](https://nodejs.org/api/crypto.html#crypto) and Web targets using [Web Crypto API](https://nodejs.org/api/crypto.html#crypto) using [Conditional Exports](https://nodejs.org/api/packages.html#conditional-exports).\n\n**Requirements:**\n\n- **Node.js**: Version **15 and above** (this library provides no polyfills for older versions!)\n- **Browser**: [Secure Context](https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts) (HTTPS/Localhost) in [Supported Browsers](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto#browser_compatibility)\n- **Other Runtimes:** Exposed `globalThis.crypto` and `globalThis.crypto.subtle`. (you can polyfill if neeeded)\n\n## Usage\n\nInstall package:\n\n```sh\n# npm\nnpm install uncrypto\n\n# yarn\nyarn add uncrypto\n\n# pnpm\npnpm install uncrypto\n```\n\nImport:\n\n```js\n// ESM\nimport { subtle, randomUUID, getRandomValues } from \"uncrypto\";\n\n// CommonJS\nconst { subtle, randomUUID, getRandomValues } = require(\"uncrypto\");\n```\n\n## Development\n\n- Clone this repository\n- Install latest LTS version of [Node.js](https://nodejs.org/en/)\n- Enable [Corepack](https://github.com/nodejs/corepack) using `corepack enable`\n- Install dependencies using `pnpm install`\n- Run interactive tests using `pnpm dev`\n\n## License\n\nMade with 💛\n\nPublished under [MIT License](./LICENSE).\n\n\u003c!-- Badges --\u003e\n\n[npm-version-src]: https://img.shields.io/npm/v/uncrypto?style=flat-square\n[npm-version-href]: https://npmjs.com/package/uncrypto\n[npm-downloads-src]: https://img.shields.io/npm/dm/uncrypto?style=flat-square\n[npm-downloads-href]: https://npmjs.com/package/uncrypto\n[github-actions-src]: https://img.shields.io/github/actions/workflow/status/unjs/uncrypto/ci.yml?branch=main\u0026style=flat-square\n[github-actions-href]: https://github.com/unjs/uncrypto/actions?query=workflow%3Aci\n[codecov-src]: https://img.shields.io/codecov/c/gh/unjs/uncrypto/main?style=flat-square\n[codecov-href]: https://codecov.io/gh/unjs/uncrypto\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funjs%2Funcrypto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funjs%2Funcrypto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funjs%2Funcrypto/lists"}