{"name":"fs-minipass","version":"2.0.0","main":"index.js","scripts":{"test":"tap","preversion":"npm test","postversion":"npm publish","postpublish":"git push origin --follow-tags"},"keywords":[],"author":{"name":"Isaac Z. Schlueter","email":"i@izs.me","url":"http://blog.izs.me/"},"license":"ISC","repository":{"type":"git","url":"git+https://github.com/npm/fs-minipass.git"},"bugs":{"url":"https://github.com/npm/fs-minipass/issues"},"homepage":"https://github.com/npm/fs-minipass#readme","description":"fs read and write streams based on minipass","dependencies":{"minipass":"^3.0.0"},"devDependencies":{"mutate-fs":"^2.0.1","tap":"^14.6.4"},"tap":{"check-coverage":true},"engines":{"node":">= 8"},"gitHead":"0fe1b248aafde18b53a6905e72f491b94467cf2a","_id":"fs-minipass@2.0.0","_nodeVersion":"12.8.1","_npmVersion":"6.12.0-next.0","dist":{"integrity":"sha512-40Qz+LFXmd9tzYVnnBmZvFfvAADfUA14TXPK1s7IfElJTIZ97rA8w4Kin7Wt5JBrC3ShnnFJO/5vPjPEeJIq9A==","shasum":"a6415edab02fae4b9e9230bc87ee2e4472003cd1","tarball":"http://registry-npm.ywwl.com/fs-minipass/download/fs-minipass-2.0.0.tgz","fileCount":4,"unpackedSize":13118,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdkmO0CRA9TVsSAnZWagAAv0YP/3rAE4bCL/BTbmeg7dFc\n8jEbPGK4yRBBuPdpv8y9UFqTso61Jnu0AOADpegq78pPoh6s2Ndt83fCV01K\nTeWArCVjZEc7Ins196aWX8cIh3upZAxR/ThmIfLkHFA0MC0smm0vl7E5Jd//\n9xG6nTBGyMgfp7C8xmnPg8Pr78HARMznbpKUZZJEaP2YrhqiAydQJn2Yc+Wi\nqv/f00jZpQ0BoR0ibSalKO4DYwySwRI7fRSQRxqJo9ep1PLoHTIvmCiLpacW\nafBsz50ymPsI4ew8Z9HGCgIRx8/2FN9+8D21jHdP9/OJDhHipC8gd4CnZF3J\n8fG9MTjP1wfk8o5lFV0LUckNx4FLULHtMg2Wskm8dMLKk2jBllYYfTxYc/bB\nn/XnVdoPRX1k68MSAZgCKE9zHyc/mbJSXsW9TXU0FLKsZkFBYZ0OoRy87HWa\nYO+wg8gZgeRMZLT/7G3qYRLfKumEpiHQAMfWeOGpWuinf6q9jYl7VnVRu8rb\n5cd55vXMV9uMb4HVQmERHNg0tEc8mQPkyL+hh1UGacvSylNZRw8MMkSS3tLp\nsJeTb0J/bSMaml8Xr9fNV/PMnyqDOsmVPEvc5cXNoAPBNNFkOQJxbiCqyoTc\na6SjmHkr6jUtXwoFszs6cIN7m/NBBGtUZkxpgyKCVrC054HT8PgLaiwLmkFt\n6Iwe\r\n=V2fP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDTyUm0ImRzT9jMp4pxZI7rRTA9/Jc4V/4KtPWPeas6gwIgHqodMd9KiJttjrS60J0fni+Ij4n+7UKwORLauSdm/ms="}],"size":4248,"noattachment":false,"key":"/fs-minipass/-/fs-minipass-2.0.0.tgz"},"maintainers":[{"email":"evilpacket@gmail.com","name":"adam_baldwin"},{"email":"ahmad@ahmadnassri.com","name":"ahmadnassri"},{"email":"anne@npmjs.com","name":"annekimsey"},{"email":"billatnpm@gmail.com","name":"billatnpm"},{"email":"cghr1990@gmail.com","name":"claudiahdz"},{"email":"darcy@darcyclarke.me","name":"darcyclarke"},{"email":"i@izs.me","name":"isaacs"},{"email":"mike@mikecorp.ca","name":"mikemimik"},{"email":"ruyadorno@hotmail.com","name":"ruyadorno"}],"_npmUser":{"name":"isaacs","email":"i@izs.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fs-minipass_2.0.0_1569874867965_0.3936571403613629"},"_hasShrinkwrap":false,"readme":"# fs-minipass\n\nFilesystem streams based on [minipass](http://npm.im/minipass).\n\n4 classes are exported:\n\n- ReadStream\n- ReadStreamSync\n- WriteStream\n- WriteStreamSync\n\nWhen using `ReadStreamSync`, all of the data is made available\nimmediately upon consuming the stream.  Nothing is buffered in memory\nwhen the stream is constructed.  If the stream is piped to a writer,\nthen it will synchronously `read()` and emit data into the writer as\nfast as the writer can consume it.  (That is, it will respect\nbackpressure.)  If you call `stream.read()` then it will read the\nentire file and return the contents.\n\nWhen using `WriteStreamSync`, every write is flushed to the file\nsynchronously.  If your writes all come in a single tick, then it'll\nwrite it all out in a single tick.  It's as synchronous as you are.\n\nThe async versions work much like their node builtin counterparts,\nwith the exception of introducing significantly less Stream machinery\noverhead.\n\n## USAGE\n\nIt's just streams, you pipe them or read() them or write() to them.\n\n```js\nconst fsm = require('fs-minipass')\nconst readStream = new fsm.ReadStream('file.txt')\nconst writeStream = new fsm.WriteStream('output.txt')\nwriteStream.write('some file header or whatever\\n')\nreadStream.pipe(writeStream)\n```\n\n## ReadStream(path, options)\n\nPath string is required, but somewhat irrelevant if an open file\ndescriptor is passed in as an option.\n\nOptions:\n\n- `fd` Pass in a numeric file descriptor, if the file is already open.\n- `readSize` The size of reads to do, defaults to 16MB\n- `size` The size of the file, if known.  Prevents zero-byte read()\n  call at the end.\n- `autoClose` Set to `false` to prevent the file descriptor from being\n  closed when the file is done being read.\n\n## WriteStream(path, options)\n\nPath string is required, but somewhat irrelevant if an open file\ndescriptor is passed in as an option.\n\nOptions:\n\n- `fd` Pass in a numeric file descriptor, if the file is already open.\n- `mode` The mode to create the file with. Defaults to `0o666`.\n- `start` The position in the file to start reading.  If not\n  specified, then the file will start writing at position zero, and be\n  truncated by default.\n- `autoClose` Set to `false` to prevent the file descriptor from being\n  closed when the stream is ended.\n- `flags` Flags to use when opening the file.  Irrelevant if `fd` is\n  passed in, since file won't be opened in that case.  Defaults to\n  `'a'` if a `pos` is specified, or `'w'` otherwise.\n","publish_time":1569874868085,"_cnpm_publish_time":1569874868085,"dist-tags":{"latest":"3.0.3"}}