{"name":"fs-minipass","version":"1.2.7","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":"^2.6.0"},"devDependencies":{"mutate-fs":"^2.0.1","tap":"^14.6.4"},"tap":{"check-coverage":true},"gitHead":"1e9c73ee0ea663d3b233591fbe37c47f969e1e5a","_id":"fs-minipass@1.2.7","_nodeVersion":"12.8.1","_npmVersion":"6.11.3","dist":{"integrity":"sha512-GWSSJGFy4e9GUeCcbIkED+bgAoFyj7XF1mV8rma3QW4NIqX9Kyx79N/PF61H5udOV3aY1IaMLs6pGbH71nlCTA==","shasum":"ccff8570841e7fe4265693da88936c55aed7f7c7","tarball":"http://registry-npm.ywwl.com/fs-minipass/download/fs-minipass-1.2.7.tgz","fileCount":4,"unpackedSize":13079,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdf9vqCRA9TVsSAnZWagAAKqIP/ivLN8vOWhXzU55uIk89\nbqx+2VJ2fY+8rgjhtKvhWeQIznGDxTcYrShC4DZxxsyIK6vvP+YFkg9sWXLL\nZh3P8iS/BN/4UImhomoAB/0f/XKELdBrjCkvN0uy9/8CUIXl3WrrQzmwTrRX\n60XnKoDf1Jz92lsfC11hRli/itWz3wipeMZgNpzrt0SbqC6m3s2+CYF0iHFs\nirBeiE3/Ta0Mq1lR/nct22dTxUmzpMNrnkQ+BEl56taxjJSaKKzSxvjZPp5A\nOofGIJALA2nzWO09EpV3LsQYm79UQxN1ZXFugIo7AOohsTNL/I4j3LTPDCCh\n5gT9wTsmR45i+n6/bwrUZSer8hSylVM/gSsazZ4ZPjt6K65xYFHyAOJYzE6+\nsqLCS3v/CH9uD5eayCjcgIZ+cmg0iXoFQcOjYmVmEh8EmjF0As+4NM6S3kAv\n8ePNw2xshvH9gwYatT2qzIGHgg2EQxF1XmdT7KcW4XdcwnYrDyw+3QJU0EJf\n/BmZu7TKJPBVU2wT2ruHlCfV4KBYTsdpDoiaA5attiXyYLcGaeclzbf8HkHB\nL68EKvtmBge+oFJipwRWdrroTtbKsFgQjjkl02OLOHY4jLZ9xFrlhjgXdbRz\ncBy+azSqQanvdPfH7IOnJjdOm3xZj0G8seQQPE/VwTU/npv4PJcz4BiBhmh/\n9hXu\r\n=Mzq+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGzem4b3hzsJEtYhEe2IHbNyoi8/uQUle/5CmqUA2ZSJAiEA3d+umF3f9wGaNeXU2iKjAjGpdhANLgg2i9G3nAYNjjs="}],"size":4231,"noattachment":false,"key":"/fs-minipass/-/fs-minipass-1.2.7.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_1.2.7_1568660457503_0.14890636250320233"},"_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":1568660457673,"_cnpm_publish_time":1568660457673,"dist-tags":{"latest":"3.0.3"}}