{"name":"iso-random-stream","version":"1.1.1","description":"Random bytes stream for node and browser","repository":{"type":"git","url":"git+https://github.com/hugomrdias/iso-random-stream.git"},"author":{"name":"Hugo Dias","email":"hugomrdias@gmail.com","url":"hugodias.me"},"license":"MIT","main":"src/index.js","engines":{"node":">=8"},"browser":{"./src/random.js":"./src/random.browser.js"},"scripts":{"test":"nyc tape test.js | faucet","test:browser-local":"airtap --local test.js","lint":"eslint --cache *.js src/*.js","validate":"run-p lint test","precommit":"yarn validate","version":"yarn changelog && git add changelog.md","changelog":"conventional-changelog -p angular -i changelog.md -s -r 0","cov":"yarn test && nyc report --reporter=html && hs coverage -s -o -c-1","cov:report":"nyc report --reporter=text-lcov > coverage.lcov && codecov"},"keywords":["stream","random","bytes","isomorphic","node","browser"],"dependencies":{"buffer":"^5.4.3","readable-stream":"^3.4.0"},"devDependencies":{"airtap":"^2.0.2","codecov":"^3.1.0","conventional-changelog-cli":"^2.0.5","eslint":"^4.7.1","eslint-config-halo":"^2.3.3","faucet":"^0.0.1","http-serve":"^1.0.1","husky":"^3.0.2","np":"^5.0.2","npm-run-all":"^4.1.1","nyc":"^14.1.1","tape":"^4.9.1"},"eslintConfig":{"extends":"halo/node"},"eslintIgnore":["node_modules","coverage","dist","storybook-static","typings"],"gitHead":"e4979b329d6032b8b5412eca303a41f0f57bdb08","bugs":{"url":"https://github.com/hugomrdias/iso-random-stream/issues"},"homepage":"https://github.com/hugomrdias/iso-random-stream#readme","_id":"iso-random-stream@1.1.1","_nodeVersion":"10.16.3","_npmVersion":"6.9.0","dist":{"integrity":"sha512-YEt/7xOwTdu4KXIgtdgGFkiLUsBaddbnkmHyaFdjJYIcD7V4gpQHPvYC5tyh3kA0PQ01y9lWm1ruVdf8Mqzovg==","shasum":"83824bba77fbb3480dd6b35fbb06de7f9e93e80f","tarball":"http://registry-npm.ywwl.com/iso-random-stream/download/iso-random-stream-1.1.1.tgz","fileCount":7,"unpackedSize":7142,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdjHj2CRA9TVsSAnZWagAAwhEP/1EqtKDjgo/L2VHj26Zw\nZHy40juIXZ+Vu/A/8IaUVop4DAE5dNgW8ZYR08Rz/od9RkIRg23dJqhKZyBz\n01vSNdizEbV2wCseS7ChLA0OoLeog7zSCIuU2bFXWfKTPlT0M3FZfRtGMcFh\nt/2DWebemA5e5xvRyxKxBO0qUslrLIUyYia74i4nLtnJRflSrMN/mUmR7gOP\n1j1asn18WSERWgVvWDw2uWbxRFMFFOAo4TOh4DZPrbUJYm0czXTsnVaQoXZU\n5QPezKSUcl2vjUdY9gxdTc3r6Hh4GSVyB5MCI4pCixFjjeJ8sAchMKYFUW/r\nJ9Y+KdwZ2y7oE6QE5uMSwKBqEny5YJNGqy2/AWl8eQiKg+vm+30GIAGrIbul\nY78Q8YTATGBYv1Ri0xy4wAgCFGsJfoqHxkNIT6Ie3A9WG2mAegIY1MIqWeRS\nIWn8FHUOjfGXTTDHXBJIQoyNPZTo3kH1jdKEkiyjPyQl2hin30G79482ISJR\nmIH6pwZixry7vrnHv/uRyvTy0Mrx9alNoWg8217Ux9ojGkG6Lt2S0pM5PWMN\nJfldUAbEwGUJiE01T8OTtJpqhdafogQDmQ/zMkA5cixwQesEBCFaFZexMXve\njefabOtdHMbvgwMsD6vtR+G0EsYJ4F6PoUvIoecpTnpwnSz6+G/S/dENuz30\nTIOL\r\n=sbnM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDR5g/EiHwt+S5PlXVQ5z03ZUEDtKjuQiNNhTkPCg2AYgIgLLHB+l/s4Cl7VxMiKakuRf1t3SSv7WjXQxuRBSASfKI="}],"size":2945,"noattachment":false,"key":"/iso-random-stream/-/iso-random-stream-1.1.1.tgz"},"maintainers":[{"name":"hugomrdias","email":"mail@hugodias.me"}],"_npmUser":{"name":"hugomrdias","email":"mail@hugodias.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/iso-random-stream_1.1.1_1569487093513_0.345683333180296"},"_hasShrinkwrap":false,"readme":"# iso-random-stream [![NPM Version](https://img.shields.io/npm/v/iso-random-stream.svg)](https://www.npmjs.com/package/iso-random-stream) [![NPM Downloads](https://img.shields.io/npm/dt/iso-random-stream.svg)](https://www.npmjs.com/package/iso-random-stream) [![NPM License](https://img.shields.io/npm/l/iso-random-stream.svg)](https://www.npmjs.com/package/iso-random-stream) [![tests](https://github.com/hugomrdias/iso-random-stream/actions/workflows/main.yml/badge.svg)](https://github.com/hugomrdias/iso-random-stream/actions/workflows/main.yml) [![codecov](https://codecov.io/gh/hugomrdias/iso-random-stream/badge.svg?branch=master)](https://codecov.io/gh/hugomrdias/iso-random-stream?branch=master)\n\n> Random bytes stream for node and browser. Uses [crypto.randomBytes(size[, callback])](https://nodejs.org/api/crypto.html#crypto_crypto_randombytes_size_callback) in node and [Crypto.getRandomValues()](https://developer.mozilla.org/en-US/docs/Web/API/Crypto/getRandomValues) in the browser. We use Buffer to keep the interfaces and returns values consistent, so make sure your bundler includes `buffer` in the browser.\n\n## Install\n\n```\n$ npm install iso-random-stream\n```\n\n## Usage\n\n```js\nconst { randomStream } = require('iso-random-stream')\n\nrandomStream('100').pipe(process.stdout)\n```\n\n## API\n\n### randomStream(size)\n\nReturns a [`stream.Readable`](https://nodejs.org/api/stream.html#stream_readable_streams). By default, it produces infinite data.\n\n#### size\n\nType: `number`\nDefault: `Infinity`\n\nNumber of random bytes to produce.\n\n## License\n\nMIT © [Hugo Dias](http://hugodias.me)\n","publish_time":1569487093649,"_cnpm_publish_time":1569487093649,"dist-tags":{"latest":"2.0.2"}}