{"name":"fs-minipass","version":"2.0.1","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":"4ffbd6de1e1f077d66fcf1e4606f8f46f4984933","_id":"fs-minipass@2.0.1","_nodeVersion":"13.6.0","_npmVersion":"6.13.4","_npmUser":{"name":"ruyadorno","email":"ruyadorno@hotmail.com"},"dist":{"integrity":"sha512-22x6v7ceMyTfG8e4Y0YeudTuDNZEIR9pQoEVu1r5e6nLuMAbmrkTXlHADEHsdk2SHYM6opcRnKUbqB9bZ94D3g==","shasum":"3e5bcc0f7b94507b0390e2c7d4a2516ca16a38d2","tarball":"http://registry-npm.ywwl.com/fs-minipass/download/fs-minipass-2.0.1.tgz","fileCount":4,"unpackedSize":13214,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeJfCGCRA9TVsSAnZWagAAu88P/R7pRu8nxK+eeFDvLvpg\nFhytSLYOyp314O8WTnBN+0LjDxkkeFpMySJNVIctNCPi4XZkwuiANoq+7jCr\nYmuTrQEYfKYJAOyFCXRYCYMByPkkd0ygjkMmvslfqmSf6ptoNyziDWm7whDR\nrOaV2ZGMT3MTOu7JldQQjvUCpkwaiSIV1jYtx+6i2yom4OIRDp9YGO3kwoRv\nTe2sJO4wpJnEwc3dboOPNLwMh/qurORkTEp1qiTWBra/rS14rb6Cphfsj+H9\nEbGL7pV4gLVQIuuqZ03urxeFZ5BDMDWGeNtX+RdQ3hUCFlnFdqxZfuZ+MIbw\nUcokI2mnCj4Z3+ElRz0qzTCMwuaZVVPCbsusU7WrxLxVRxwsozFGKLr7FVPH\nxEHjDdeGOnizgWSyp1CWLDnlZUoCdB67wRGIqWB6anvE1+Lik2PRd/52UHPP\nVJ/dx2dI91z4nQYM6gfIh1tRQfzFtb0Lfux8yCZmsvoIQsGCAQiqdZiQVme4\nPiIyJTgrD4o4tKDB5BXyMeyyxF1glUl7OVQluewa831ls8n2nSUwbZHcU92G\n2OpVtr+iyYDQk5Wkep91vyimlcwviOYkIKcNex5DADWs9+SIn4F9TTXrCN3T\noMLjIFhhyhSlMaWvdVlr7s4mMtVge8wYBiQoZTyaOl4LtuuKUlRuAcMcBki+\nozph\r\n=cQqe\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHva13SqHARMbZQclcEvPvgAzf0S7y4vAc/TT5ivh+GyAiEA6Jnl3tzjAGhglT6HEmP01PUdfAaPaf1IQaR6tYkThwk="}],"size":4323,"noattachment":false,"key":"/fs-minipass/-/fs-minipass-2.0.1.tgz"},"maintainers":[{"email":"evilpacket@gmail.com","name":"adam_baldwin"},{"email":"ahmad@ahmadnassri.com","name":"ahmadnassri"},{"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"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fs-minipass_2.0.1_1579544709839_0.8668552111711036"},"_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":1579544709933,"_cnpm_publish_time":1579544709933,"dist-tags":{"latest":"3.0.3"}}