{"name":"fs-minipass","version":"1.2.6","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.2.1"},"devDependencies":{"mutate-fs":"^2.0.1","tap":"^13.1.9"},"tap":{"check-coverage":true},"gitHead":"f9a1d65d03d41e17b162e77eabd3c67e26ea070d","_id":"fs-minipass@1.2.6","_nodeVersion":"12.0.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-crhvyXcMejjv3Z5d2Fa9sf5xLYVCF5O1c71QxbVnbLsmYMBEvDAftewesN/HhY03YRoA7zOMxjNGrF5svGaaeQ==","shasum":"2c5cc30ded81282bfe8a0d7c7c1853ddeb102c07","tarball":"http://registry-npm.ywwl.com/fs-minipass/download/fs-minipass-1.2.6.tgz","fileCount":4,"unpackedSize":13052,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc3E/JCRA9TVsSAnZWagAApvEP/00oEt3mUuE7hMjdVT19\nhqMoaRjRUnGad8/eEpNVhXjqZ5/bnLDlfNCIaBYlepp7Dv4AD2AWJc6O64Wi\ngCJ2rZQSXsXnlXv1yfNcdCpaaiwMzgciTDtbntsq672ane0JjYy4HJ9gqN8g\nrNgRWZ6/eeVhigB2tcKeZOcmpB10V28C33t0eUvQO3o0yoHW3iAeL+GOLaVH\n4D1oAOSLcWBPtk4MYQlvCJS45x+RZmvH8xqKwvSOvt5z61PBox89WfTfalYp\nFjS8LBu5OgxZUgfneRAxxQM82YkxbZTmhGTR0siam8XAWYzY/AD4h/X+6k87\n5fDeset5BwD2RJXOI9bKdUOyZ2cR02GGVAo0bWWDlE9LowihhO7hRm8AUf/Y\nIlgQpqgeWJ+AfOq6FRUzKdG0c+3vzQeLZLHBkCoHZB25Yzjg8rvdcd/ztka3\nSe70BiDB+n+GZWwTJXbbyzEXWiUfSagXXHyOr1zhoZ1CoOepsJfry1o6nQhq\nAWO5okI36odYUZRflrj8WTqXGQuzA619Mre9DPfY5jj5N9QB9kodBaXai3wz\nWmCSj0JF+XqEutUQenT6hrAG0KWGLlhKfFFCSdQDUePVw093GaU7MxfJFCo5\n/bM0xy8EGUKqGZVlBTuDtuwQ6wejcA7ZtuEDBOqxFSyi4/eTwaDmoWb77K/8\nwh8T\r\n=Zf69\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG2/fwbhlBX2ff7xiCRkN+o7kOyQkGSYA8qAatq2lQIlAiEA9ctFwsMKt9rkHdqFemRWEEnQYre4zdx+VxywzM27bHk="}],"size":4224,"noattachment":false,"key":"/fs-minipass/-/fs-minipass-1.2.6.tgz"},"maintainers":[{"email":"me@re-becca.org","name":"iarna"},{"email":"i@izs.me","name":"isaacs"}],"_npmUser":{"name":"isaacs","email":"i@izs.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fs-minipass_1.2.6_1557942217307_0.8853606533561724"},"_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":1557942217410,"_cnpm_publish_time":1557942217410,"dist-tags":{"latest":"3.0.3"}}