{"_id":"crypto-random-bigint","_rev":"6-23dedbca049ccd5a6b2c9c6996b32b9e","name":"crypto-random-bigint","dist-tags":{"latest":"2.1.1"},"versions":{"1.0.0":{"name":"crypto-random-bigint","version":"1.0.0","keywords":["crypto","random","bigint","number"],"author":{"name":"Fabio Spampinato","email":"spampinabio@gmail.com"},"license":"MIT","_id":"crypto-random-bigint@1.0.0","maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"homepage":"https://github.com/fabiospampinato/crypto-random-bigint#readme","bugs":{"url":"https://github.com/fabiospampinato/crypto-random-bigint/issues"},"dist":{"shasum":"d2dbe71cf3c7a51177233f173f8683c29ddb01ee","tarball":"https://registry.npmjs.org/crypto-random-bigint/-/crypto-random-bigint-1.0.0.tgz","fileCount":19,"integrity":"sha512-JTidAeRYRkkS59bW7dWvZyjyhoYFyk+LqwM4AEJIzciil42jlGULKZWNLSoDXL2FQgtCMT8vkPqpoIakib13oQ==","signatures":[{"sig":"MEQCICh90LJs7bZkOSzAAzSnTCpZlC8erFEt9i11/Ct0w29EAiBkXGQgPF86nK4KnJlTUnJ3xa772uA6cfLcu5O90NFuiw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14071,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh/z/xCRA9TVsSAnZWagAAxu4P/ja5L3MoGj19fj+nVE3m\nDlnq4nqJogmlvEOhxM/gVwdOJRhpCNO4dSwCcwQsIC2h54/1Ltf3R682+SDy\nlyr10wTk6zw3oXO9alJAdDSaQ5xX7OXYq5uvJgsLl5eS9dCibwVvifsizX7a\nlI0sPNA/j1gmYQVl5SgTumYcyhxAWKzilBZbGr+pcXqpqLuXVt8hrK3LrL3F\n65q7ArBMqkH6OFfmJF8bdYzbn+T5Az4UvqhK8PQAqSefJSoUnyEdvz6Ydm06\n3A/+aDPgIuwtBPb0yPuUPS6ZxlTY+u3tOYEmp4uACvnTOWC0zTZerr9/tWiD\nJ12yVR1ZOSHHd97jmZCKmBFZzO0k5U3dAa0MLXq69lE+gwpMcMSl4fTz3pYt\n8Ru0qooTtc6cECRXC2JiEGy+52L9dg3mKkRScsfl1LD49wZKuu9eii+fK4gT\nRC9VUW41VjxYKECGKOvSEkpN6q0/UNn5sAVusZz6DgaR/fGCXW8isT+KRS7y\n1VhZhMh8JyCdz/JEZJl354/2n0yKJLWxqoPR7DEctGX4JWYNbC9m+tj3AJtD\nO1gv1amSU50+v5sU2OewUOSjvyk2jXIGwuNDB+W4eWUjiSSeoTMmtNw8Ib41\nkkHqKtrvF9p6C1ycY6sTRemg6WN1HENLyYLP3uutYjp/uhW3PMDWhdw0yygE\nAB5N\r\n=lNrM\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/node.js","types":"dist/node.d.ts","exports":{"node":"./dist/node.js","default":"./dist/browser.js"},"gitHead":"9e403f7f414f7eb4d39375c352766f6fefe880dc","scripts":{"test":"fava","clean":"rimraf dist","compile":"tsc --skipLibCheck && tstei","benchmark":"node tasks/benchmark.js","test:watch":"fava -w","compile:watch":"tsc --skipLibCheck --watch","prepublishOnly":"npm run clean && npm run compile && npm run test"},"_npmUser":{"name":"fabiospampinato","email":"spampinabio@gmail.com"},"repository":{"url":"git+https://github.com/fabiospampinato/crypto-random-bigint.git","type":"git"},"_npmVersion":"8.1.0","description":"Generate a cryptographically-random BigInt with the given number of bits of entropy.","directories":{},"_nodeVersion":"16.13.0","_hasShrinkwrap":false,"devDependencies":{"fava":"^0.0.4","rimraf":"^3.0.2","benchloop":"^1.3.2","typescript":"^4.5.5","@types/node":"^17.0.15","typescript-transform-export-interop":"^1.0.4"},"_npmOperationalInternal":{"tmp":"tmp/crypto-random-bigint_1.0.0_1644118001669_0.762686178947005","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"crypto-random-bigint","version":"1.1.0","keywords":["crypto","random","bigint","number"],"author":{"name":"Fabio Spampinato","email":"spampinabio@gmail.com"},"license":"MIT","_id":"crypto-random-bigint@1.1.0","maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"homepage":"https://github.com/fabiospampinato/crypto-random-bigint#readme","bugs":{"url":"https://github.com/fabiospampinato/crypto-random-bigint/issues"},"dist":{"shasum":"016c24df8389414649aeb4ab8f5a8dad796d7e51","tarball":"https://registry.npmjs.org/crypto-random-bigint/-/crypto-random-bigint-1.1.0.tgz","fileCount":19,"integrity":"sha512-w5jcdIK0q6ptrhlNEFw8eP/eSpXMYQl7twvIieM34KtY6BhYTJ7oM5zeVInv5gXoTp3RN9Xxbj6TV0YaAhs0Ig==","signatures":[{"sig":"MEUCIQDFsfs6RQJ7+E0Ifrbb54lEV6O7D13fjFa7+PNbVWqQ/QIgfYovkpaf5dDrLrlaB1iZ+W5RoCR1MEnVFQV6Re71Q+g=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14317,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiAcriCRA9TVsSAnZWagAAjqMP/jOGLwLh5qpwEmKpChkv\nFJmOv90TeImD2GWd/+H7i8ZsXsYE0Mciq4PR4n0BtJ3k4TDTcJDYCZKHnsNf\nNbgjcBL2hHXGVrdFp+2QMKEJMohQKyodj+1OC7MQE+DvBsqf/5A1xhAFhIJ0\nYpbrw4TBhK7zQ9qGVgwbohSEiJuV7Yq0KS+seCao6rUGaLZNNltLT51UO3q7\nsEJEiuONz+iyZPmqvN2PP1LcwqXmGtWbGQ7lj6M4AlDcpf9/uidWaTWu7inn\nKRCu2FjOKHufalBP11jIVfAdMHjgmNea8AUdnDtO5dxRqgCr1btvI1LWqtY9\nMpvuZ3Xiiv+RhBq1XD/JU7RR1yEk8Pwxk3qKZsmSa9W/fr2HxOT2ZiGcN+WA\ndbsSEDv+k8yzwmQtVsN7WB3SwE/ANgmrZ3PPocffrCF86/nlg+Hm7ql/0YPu\nhh+h9hD1u5UhEI88W8YtZV4YDleslHPFrtJu+8XCSQrwPRMHdUiFLrzYDWaO\n953YuqWpyslr32/RWRLzednsomhRaw/zct//t2J1+fKq0BSK/SkthOpcMVw3\nvfEY8HxkWkb910dfb1z8bq9GWr8Ws7ZqS9cbsL3WvngSrCp4GD93FoGFla4h\nHIOnC59X8JYsKsUyyo27zjy5GfI4P5492xEt8IL8biw/8ibt3jXlmhKZWeaK\nfbLp\r\n=34/J\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/node.js","types":"dist/node.d.ts","exports":{"node":"./dist/node.js","default":"./dist/browser.js"},"gitHead":"1b1800943b58f4636c0388176de4d41ae0fce5d4","scripts":{"test":"fava","clean":"rimraf dist","compile":"tsc --skipLibCheck && tstei","benchmark":"node tasks/benchmark.js","test:watch":"fava -w","compile:watch":"tsc --skipLibCheck --watch","prepublishOnly":"npm run clean && npm run compile && npm run test"},"_npmUser":{"name":"fabiospampinato","email":"spampinabio@gmail.com"},"repository":{"url":"git+https://github.com/fabiospampinato/crypto-random-bigint.git","type":"git"},"_npmVersion":"8.1.0","description":"Generate a cryptographically-random BigInt with the given number of bits of entropy.","directories":{},"_nodeVersion":"16.13.0","_hasShrinkwrap":false,"devDependencies":{"fava":"^0.0.4","rimraf":"^3.0.2","benchloop":"^1.3.2","typescript":"^4.5.5","@types/node":"^17.0.15","typescript-transform-export-interop":"^1.0.4"},"_npmOperationalInternal":{"tmp":"tmp/crypto-random-bigint_1.1.0_1644284642617_0.6963700603756335","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"crypto-random-bigint","version":"2.0.0","keywords":["crypto","random","bigint","number"],"_id":"crypto-random-bigint@2.0.0","maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"homepage":"https://github.com/fabiospampinato/crypto-random-bigint#readme","bugs":{"url":"https://github.com/fabiospampinato/crypto-random-bigint/issues"},"dist":{"shasum":"698b10a438ef6815f7d847723f878e0dac7ca34a","tarball":"https://registry.npmjs.org/crypto-random-bigint/-/crypto-random-bigint-2.0.0.tgz","fileCount":13,"integrity":"sha512-O6wlyVn09REcJRnddGQMHEHp2wMZ7LUZ9jalTWYFJLOznmGYHsIiUJWAY6s9g9mYBKqCxO/X25tSNl2v1T3xpA==","signatures":[{"sig":"MEUCIQD61xenSc69SQXsb/bTHF8O72fOgPC1NgzTtvEW0sNf7AIgeExtueN6c63IwFDQslntERXpAkYLJK1G50lBIoyFzbg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10351,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiTJP0ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrk8xAAgjOJrmVWZjipxowVKBGUtcA1j0/dm4AuJYsdVyz7No6XONXp\r\nokj7ElpqmUdc7119KGINFbkTPKv3SurBztwUbXfjLE0CfK9ZVSDwWS8r9L+G\r\nD7EcA5riVV9RBQ2s9rlg3o7WJZFIV3OiokRuNNeYyhDp9LQ/3or9tZyLY6Ur\r\nA52MJPGh28lnoKCJn2C1UmuahjrOW8slarxVqL4SaAluxqy0K1OLirvy7Aw9\r\nlpdIVBsw7Zsu9fJAh9Gb0qn+l3BS/TRkytXXjPFSS2Xg1HYV2AkbUoFZ1Y2T\r\nhAZxTbD5J6Vf3UdnxJ1UyipWrTzlP0f8H3wNk/7a/PAlQ1qKnptPxLXgM7NI\r\nZS0dGzbOy+hZzAFtAY+GBXiAaeHjnbVzroZrJcNCRfDPMo/ynLh1ZEb0aqGD\r\nZnJheUnyLDw4JUZbNqw1JqlytkN7ohpkzmgG1UU4vyb0rm+PXZcPP+wcz6nH\r\nDjWsa9XdmLPPBnAKsB7QKNlmZmWzFHanhmhNh755cbhOZUDfrtEXU9BgHuds\r\nPYWueY+39yKhfuhsxDlsO0Jpu8jHu04dkBJXT2QA9EUdNHEsK+hKy1CD4px4\r\ng2Lb4BEQK7/l9mBbXK7MYHwgyvu3eAD2n37PT3FK3MrL11SGoZKwvYDk/m9V\r\nB4kDjh5EuZgfxnbd2JFcSTt+ZOq31U8JrXQ=\r\n=GPFv\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","exports":"./dist/index.js","gitHead":"642241e28126b1983a6cce31a315cb5d4b3b2ddb","scripts":{"test":"tsex test","clean":"tsex clean","compile":"tsex compile","benchmark":"tsex benchmark","test:watch":"tsex test --watch","compile:watch":"tsex compile --watch","prepublishOnly":"npm run clean && npm run compile && npm run test","benchmark:watch":"tsex benchmark --watch"},"_npmUser":{"name":"fabiospampinato","email":"spampinabio@gmail.com"},"repository":{"url":"git+https://github.com/fabiospampinato/crypto-random-bigint.git","type":"git"},"_npmVersion":"8.1.0","description":"Generate a cryptographically-random BigInt with the given number of bits of entropy.","directories":{},"_nodeVersion":"16.13.0","dependencies":{"tiny-webcrypto":"^1.0.1"},"_hasShrinkwrap":false,"devDependencies":{"fava":"^0.0.6","tsex":"^1.0.4","benchloop":"^1.3.2","typescript":"^4.6.3"},"_npmOperationalInternal":{"tmp":"tmp/crypto-random-bigint_2.0.0_1649185780744_0.049627666703838","host":"s3://npm-registry-packages"}},"2.0.1":{"name":"crypto-random-bigint","version":"2.0.1","keywords":["crypto","random","bigint","number"],"_id":"crypto-random-bigint@2.0.1","maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"homepage":"https://github.com/fabiospampinato/crypto-random-bigint#readme","bugs":{"url":"https://github.com/fabiospampinato/crypto-random-bigint/issues"},"dist":{"shasum":"01f162c95a0e5740e474462867d7f6976c29fd5c","tarball":"https://registry.npmjs.org/crypto-random-bigint/-/crypto-random-bigint-2.0.1.tgz","fileCount":10,"integrity":"sha512-WaBlvpseXnOmbtDYg42bJ6U1nr5+2HDgXvBZSdYlwin12BK6VbIk5CfZRwVgD8Ek42duB675zISlm9Sp+Mrt1A==","signatures":[{"sig":"MEQCIDE+QZFj15fb6f3zbb2P07sm7cyUZafkb1YYzFz1DyeiAiBkEypkWfwacPANkm6GLJoJqbH7Uc+o8NHsST3XZfnBVw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8466},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","exports":"./dist/index.js","gitHead":"daa4f914f7601cf62a7699d9753d7314ea105296","scripts":{"test":"tsex test","clean":"tsex clean","compile":"tsex compile","benchmark":"tsex benchmark","test:watch":"tsex test --watch","compile:watch":"tsex compile --watch","prepublishOnly":"tsex prepare","benchmark:watch":"tsex benchmark --watch"},"_npmUser":{"name":"fabiospampinato","email":"spampinabio@gmail.com"},"repository":{"url":"git+https://github.com/fabiospampinato/crypto-random-bigint.git","type":"git"},"_npmVersion":"8.19.2","description":"Generate a cryptographically-random BigInt with the given number of bits of entropy.","directories":{},"_nodeVersion":"18.12.0","dependencies":{"uint-rng":"^1.1.0"},"_hasShrinkwrap":false,"devDependencies":{"fava":"^0.2.1","tsex":"^3.0.1","benchloop":"^2.1.0","typescript":"^5.1.6"},"_npmOperationalInternal":{"tmp":"tmp/crypto-random-bigint_2.0.1_1691167686303_0.6031114523565262","host":"s3://npm-registry-packages"}},"2.1.0":{"name":"crypto-random-bigint","version":"2.1.0","keywords":["crypto","random","bigint","number"],"_id":"crypto-random-bigint@2.1.0","maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"homepage":"https://github.com/fabiospampinato/crypto-random-bigint#readme","bugs":{"url":"https://github.com/fabiospampinato/crypto-random-bigint/issues"},"dist":{"shasum":"07e1ab2de3676204f0fc8a6c46969bf480d524fe","tarball":"https://registry.npmjs.org/crypto-random-bigint/-/crypto-random-bigint-2.1.0.tgz","fileCount":10,"integrity":"sha512-g63bcqflSF6kWgV8Qgp8S8rmSCSPpltxTL3KbZvyvbQzQJwyKqjOD21JnQpDKVyc9mG2DlNRyXGnUZ7RrdmPeQ==","signatures":[{"sig":"MEQCIEELaERuVDLQOCh32HIMJt8U+F/6Vo1/N8mhyQRWAp3JAiALkzO0qZExJH6YjWknyQm5fo6ynDLiDluXKGilc7ff2A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8930},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","exports":"./dist/index.js","gitHead":"493d69b4965cd6da332b17c779a8408585ae86c1","scripts":{"test":"tsex test","clean":"tsex clean","compile":"tsex compile","benchmark":"tsex benchmark","test:watch":"tsex test --watch","compile:watch":"tsex compile --watch","prepublishOnly":"tsex prepare","benchmark:watch":"tsex benchmark --watch"},"_npmUser":{"name":"fabiospampinato","email":"spampinabio@gmail.com"},"repository":{"url":"git+https://github.com/fabiospampinato/crypto-random-bigint.git","type":"git"},"_npmVersion":"8.19.2","description":"Generate a cryptographically-random BigInt with the given number of bits of entropy.","directories":{},"_nodeVersion":"18.12.0","dependencies":{"uint-rng":"^1.1.0"},"_hasShrinkwrap":false,"devDependencies":{"fava":"^0.2.1","tsex":"^3.0.1","benchloop":"^2.1.0","typescript":"^5.1.6"},"_npmOperationalInternal":{"tmp":"tmp/crypto-random-bigint_2.1.0_1691249581904_0.11333632874853627","host":"s3://npm-registry-packages"}},"2.1.1":{"name":"crypto-random-bigint","repository":{"type":"git","url":"git+https://github.com/fabiospampinato/crypto-random-bigint.git"},"description":"Generate a cryptographically-random BigInt with the given number of bits of entropy.","license":"MIT","version":"2.1.1","type":"module","main":"dist/index.js","exports":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"benchmark":"tsex benchmark","benchmark:watch":"tsex benchmark --watch","clean":"tsex clean","compile":"tsex compile","compile:watch":"tsex compile --watch","test":"tsex test","test:watch":"tsex test --watch","prepublishOnly":"tsex prepare"},"keywords":["crypto","random","bigint","number"],"dependencies":{"uint-rng":"^1.2.1"},"devDependencies":{"benchloop":"^2.1.1","fava":"^0.3.4","tsex":"^4.0.2","typescript":"^5.7.3"},"_id":"crypto-random-bigint@2.1.1","gitHead":"6b875a5e7fa3151897354c2d70a6d59d8b129963","bugs":{"url":"https://github.com/fabiospampinato/crypto-random-bigint/issues"},"homepage":"https://github.com/fabiospampinato/crypto-random-bigint#readme","_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-96+FDrenXybkpnLML/60S8NcG32KgJ5Y8yvNNCYPW02r+ssoXFR5XKenuIQcHLWumnGj8UPqUUHBzXNrDGkDmQ==","shasum":"f80239ca9d69b53a4920fc5908949689d1b9db95","tarball":"https://registry.npmjs.org/crypto-random-bigint/-/crypto-random-bigint-2.1.1.tgz","fileCount":5,"unpackedSize":4485,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDB2l2K7EIdRMBJDSbcFx++NR2Dm5m21ojZN7XikmL11QIgGNDEKuVbM7BrclLAd5F0M8m0lp+FsGhtcVkyaaoRMMg="}]},"_npmUser":{"name":"fabiospampinato","email":"spampinabio@gmail.com"},"directories":{},"maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/crypto-random-bigint_2.1.1_1736810736109_0.5158795707495463"},"_hasShrinkwrap":false}},"time":{"created":"2022-02-06T03:26:41.668Z","modified":"2025-01-13T23:25:36.612Z","1.0.0":"2022-02-06T03:26:41.816Z","1.1.0":"2022-02-08T01:44:02.766Z","2.0.0":"2022-04-05T19:09:40.929Z","2.0.1":"2023-08-04T16:48:06.532Z","2.1.0":"2023-08-05T15:33:02.091Z","2.1.1":"2025-01-13T23:25:36.450Z"},"bugs":{"url":"https://github.com/fabiospampinato/crypto-random-bigint/issues"},"homepage":"https://github.com/fabiospampinato/crypto-random-bigint#readme","keywords":["crypto","random","bigint","number"],"repository":{"type":"git","url":"git+https://github.com/fabiospampinato/crypto-random-bigint.git"},"description":"Generate a cryptographically-random BigInt with the given number of bits of entropy.","maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"readme":"# Crypto Random BigInt\n\nGenerate a cryptographically-random BigInt with the given number of bits of entropy.\n\nIt's pretty darn fast, tiny, and it works everywhere. It's like a purer version of [`nanoid`](https://github.com/ai/nanoid).\n\n## Install\n\n```sh\nnpm install crypto-random-bigint\n```\n\n## Usage\n\n```ts\nimport random from 'crypto-random-bigint';\n\n// Let's get some random BigInts\n\nrandom ( 8 ); // => 132n\nrandom ( 16 ); // => 54279n\nrandom ( 32 ); // => 3564608120n\nrandom ( 64 ); // => 15255558299082773463n\nrandom ( 128 ); // => 102272854662000556975733753112255674405n\n```\n\n## License\n\nMIT © Fabio Spampinato\n","readmeFilename":"readme.md","license":"MIT"}