{"name":"uncrypto","version":"0.1.1","description":"Single API for Web Crypto API and Crypto Subtle working in Node.js, Browsers and other runtimes","repository":{"type":"git","url":"git+https://github.com/unjs/uncrypto.git"},"license":"MIT","sideEffects":false,"type":"module","exports":{".":{"require":"./dist/crypto.web.cjs","import":"./dist/crypto.web.mjs","types":"./dist/crypto.web.d.ts","node":{"require":"./dist/crypto.node.cjs","import":"./dist/crypto.node.mjs","types":"./dist/crypto.node.d.ts"}}},"main":"./dist/crypto.node.cjs","module":"./dist/crypto.web.cjs","browser":"./dist/crypto.web.cjs","types":"./dist/crypto.web.d.ts","scripts":{"build":"unbuild","dev":"vitest dev","lint":"eslint --cache --ext .ts,.js,.mjs,.cjs . && prettier -c src test","lint:fix":"eslint --cache --ext .ts,.js,.mjs,.cjs . --fix && prettier -c src test -w","prepack":"pnpm run build","release":"pnpm test && changelogen --release && npm publish && git push --follow-tags","test":"pnpm lint && vitest run --coverage"},"devDependencies":{"@types/node":"^18.11.19","@vitest/coverage-c8":"^0.28.3","changelogen":"^0.4.1","eslint":"^8.33.0","eslint-config-unjs":"^0.1.0","prettier":"^2.8.3","typescript":"^4.9.5","unbuild":"^1.1.1","vitest":"^0.28.3"},"packageManager":"pnpm@7.26.2","gitHead":"74571c0571e9f3ad211ce75b93cd46cf155ac74c","bugs":{"url":"https://github.com/unjs/uncrypto/issues"},"homepage":"https://github.com/unjs/uncrypto#readme","_id":"uncrypto@0.1.1","_nodeVersion":"16.17.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-eaowTC481FBNPOdd+RgvMNvCriGgG1GYxd2hY0GXsUv7izfmrp2bi2a5jOrzmoZj984dg5x9URb/QF6Rjy7rjg==","shasum":"33326fbfb5b6eeddf985c5543df476962de38a61","tarball":"http://registry-npm.ywwl.com/uncrypto/download/uncrypto-0.1.1.tgz","fileCount":9,"unpackedSize":7196,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGAyr0sTj+uCIE65XEUZnEaSuUveVrqC4LKOMfGSGDGaAiEAihPSIxEkmGq6YtFMGtTgcUDvC9t+P79c5+ebX6+xWug="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj4WNoACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqzJRAAn7SPetHZjgjxLwS/AYa30zuzm4YxluFc9BnBz0rWeDhsrfxE\r\nPHag7/2KCp/HjsYl3Q4gJsoCtvMTa5NoYdFp3TJVJB3okUAzMFjX7qI2N9YN\r\nD/LBAkz0GmlZWbI7f2tnwvzXeAGXwd8GRvm/jhiTs7v1Rn2jfW9r+1al4dNV\r\nmZDz/M+tciFPzgCyXGYpXb90UTliUbEK12UwWMmF15KSAfdE+w8AWJr1+csm\r\nslqCBW5/7c1//vy04yoLnYT60N/x2UqHsBIqAPmnHPVc1SKfL8SM/WDwPBZG\r\nOpz7XHq3g1Q5t3c3JM7APATGPghZVsJoXv3Eg/BMTAgQ0HrvTqBZBrs3Ya3y\r\nRihuWm5Nbo6R8sKW8VPjdtBzJjldmGJuGaDZLxqVCIUrr7I4xUN3hi43ob+k\r\nTTC9HXTHZDTG8P3vQt067cgcHupVFBzro4A7au72iRG6EXotsaiEC0QnIEzj\r\n7rmC2xONk5z5W5eo7aqq0/6PkyG5/FLVDNL46OFsqN/raGBgGm8ufxMgFzXv\r\njfsfegETIZqVq9QQopoQZQaIDPI2kYyphAFBImXyGV8FEAdDiGl0QS0K/2GA\r\nzLS7AqFa7DLZ1ZKOW5hTXaoyRqOF88MxulyrZh4XitBj+xE+cJMb+JY1il+n\r\nZDVFONGv8/QS/+P4hqfjlfNERt2sTSnhiMo=\r\n=rH9+\r\n-----END PGP SIGNATURE-----\r\n","size":2738,"noattachment":false,"key":"/uncrypto/-/uncrypto-0.1.1.tgz"},"_npmUser":{"name":"pi0","email":"pyapar@gmail.com"},"directories":{},"maintainers":[{"name":"pi0","email":"pyapar@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/uncrypto_0.1.1_1675715432724_0.24469378187618074"},"_hasShrinkwrap":false,"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<!-- Badges -->\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/workflow/status/unjs/uncrypto/ci/main?style=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","publish_time":1675715432900,"_cnpm_publish_time":1675715432900,"dist-tags":{"latest":"0.1.3"}}