{"name":"iso-random-stream","version":"1.0.0","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":{},"devDependencies":{"airtap":"^0.1.0","tape":"^4.9.1","faucet":"^0.0.1","codecov":"^3.1.0","conventional-changelog-cli":"^2.0.5","eslint":"^4.7.1","eslint-config-halo":"^2.3.3","http-serve":"^1.0.1","husky":"^0.14.3","np":"^3.0.4","npm-run-all":"^4.1.1","nyc":"^13.0.1"},"eslintConfig":{"extends":"halo/node"},"eslintIgnore":["node_modules","coverage","dist","storybook-static","typings"],"gitHead":"976f1f055f838fbae30dec0a0e4e70b518ef9fa6","bugs":{"url":"https://github.com/hugomrdias/iso-random-stream/issues"},"homepage":"https://github.com/hugomrdias/iso-random-stream#readme","_id":"iso-random-stream@1.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.10.0","_npmUser":{"name":"hugomrdias","email":"mail@hugodias.me"},"dist":{"integrity":"sha512-2DlQ5HCVEDCL61r3j6eHFp1H56SGzLbK34vNr2HLGOREKp1R9d9OFZhvR/xU1l2ukN5kjYwXJZNDzgI+GU2fbA==","shasum":"96f302a7c86938da07bfacb596353124ec617834","tarball":"http://registry-npm.ywwl.com/iso-random-stream/download/iso-random-stream-1.0.0.tgz","fileCount":7,"unpackedSize":6403,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJboSpFCRA9TVsSAnZWagAACwcP/A1ruEc9SmIq0XnHej/w\nn46b+8MuCdxLqgLwQm3KcjStJqZuntvhQsX9vtwwlvd3foHtXrp+ozXYV5Z6\n57XE1Ut620gwebWgZR7FduEAr4wJT2OE22XuI2jQO1vOEcvvD2TdBR2/3E2Q\nV8+BvbUru/aAKBNo0j12GiVTEYBVJjro9UhCpB/JeHuOgi2TpYhnIQXMDTwS\noaK6TECleu5ijx49mYik90QKGqmbTIEymo2wOXiM7CoD+H2O2Jk2YlrMZD4L\nDk6ysErzmRm/Z/3qA5lVAZv6NI/qFRpJbmHrTmyT8/FGb3dMA5wCjNc4QE3x\nyuvWIYUpXA5SVsnIZjHno5fYJFiJPbKTaKqFCE1mcV+iVswbCgQx5jACYNbs\nJKHGBQbNr9GVka79sIGcU9ZCtRt7bA8KbjukUo0pBNqP1hzfivpsxOoeQU0c\nzqWk8Xh4O2QNSxVGNOH/m/XxD8ApdJUev4v4LT+Iez1ITHnkCriOqYO9fpVZ\n2zwX7SjKzkrk5lZ5dSVQ7itx3tSVvL5cflP8p1HLPL9to0Gzu3xzwNoHSzhm\nIKYL5VGlZBlqTE16klnGQw4Z7lbtxhAL5uDOmadbHa0p80H+6cWonGKpu9Bx\nmrkHOqDT0UFnBP+rFvy1pxtEsewk0QY6QDyAlCTz4Fosw0N7y2GP54URksjd\nzZRE\r\n=9bZM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDrH1xydtkyQ15JudHSvnPWhg/6OJ+np305YmoXF6ErvwIgUyyZMWlMHVDH2LG91JL+ZXv1XqqcrgBc46f/wI1UkeY="}],"size":2753,"noattachment":false,"key":"/iso-random-stream/-/iso-random-stream-1.0.0.tgz"},"maintainers":[{"name":"hugomrdias","email":"mail@hugodias.me"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/iso-random-stream_1.0.0_1537288773260_0.6648347375889643"},"_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":1537288773353,"_cnpm_publish_time":1537288773353,"dist-tags":{"latest":"2.0.2"}}