{"name":"fs-minipass","version":"3.0.0","main":"lib/index.js","scripts":{"test":"tap","lint":"eslint \"**/*.js\"","postlint":"template-oss-check","template-oss-apply":"template-oss-apply --force","lintfix":"npm run lint -- --fix","snap":"tap","posttest":"npm run lint"},"keywords":[],"author":{"name":"GitHub Inc."},"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":"^4.0.0"},"devDependencies":{"@npmcli/eslint-config":"^4.0.1","@npmcli/template-oss":"4.11.0","mutate-fs":"^2.1.1","tap":"^16.3.2"},"tap":{"check-coverage":true,"nyc-arg":["--exclude","tap-snapshots/**"]},"engines":{"node":"^14.17.0 || ^16.13.0 || >=18.0.0"},"templateOSS":{"//@npmcli/template-oss":"This file is partially managed by @npmcli/template-oss. Edits may be overwritten.","version":"4.11.0"},"gitHead":"dfdb274393f83d3f68b2171285d5c267b4a8602d","_id":"fs-minipass@3.0.0","_nodeVersion":"18.12.1","_npmVersion":"9.2.0","dist":{"integrity":"sha512-EUojgQaSPy6sxcqcZgQv6TVF6jiKvurji3AxhAivs/Ep4O1UpS8TusaxpybfFHZ2skRhLqzk6WR8nqNYIMMDeA==","shasum":"8e6ed2b4e1ba44077cae69971393068a1bbeeed6","tarball":"http://registry-npm.ywwl.com/fs-minipass/download/fs-minipass-3.0.0.tgz","fileCount":4,"unpackedSize":14347,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBG4b4ZDyIOf47I59NDzZ8gzr/V2uxSgA+c7ykOv7h+eAiAFKLgef3XYicFi+eA5aIiUX4jAGhGIn/ijEdVPfaBvGg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjmQfrACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo76w//UkfTeS3pQnn5oo0ZIciacGDCAyOG0yIpQ+Uj3+73MNnFEuRj\r\n83ii68SRAfOS9lSZeKF5G4n9E1j25oOfk0GmdFaI/uzqzN6hfllUvqM7LlLu\r\n1veXduYiFvmgsAtp2bECxgdmDILcz4freWlFJk4VjGj5me2NwHkhl7aybjLk\r\ndpWWniEX06ylBYyLoi6JV69ZquHh1av0RzGaUxlO4Es3x8jZRAgIg+Vjsgpr\r\nBpz3RxAxxopTdeQfpArK0zcsB6egni+qTvTtCopUgI2H5K3wqnFYSSWQMXjE\r\neAvsr+1GkBYhUrpb2C/QM92QCKicbhoJFGyWHCx6JMYZlzj5Vgl8miB/CF/c\r\n8aF12KxKCAi0JhmOETuOqDhd41KK7Ngq7snbiMr/xLeWza6JZVJhG2a1gRGj\r\ncif2H9Kr4mYFBTXSYa0q93QmoJoibfud/lyeRucs8CNCO/Fk8B2iA8Gs1fUD\r\nC/+CBdI1VWg+WDo2As26vJdlSnNh/8RpV/U4aB5Fn2uzA+njbQ1oAZqVTv8u\r\n1OIP68h5K+LRokk2zkof9Gl59/pzOiRFVDgRTaH64M1MCNy8a5UQXwJlg2md\r\ns1IOVP62lnAD2vLOkLRFxYrXcRhz9L0aDkHjR51VuqpXVDOcf6GLH9hJQgJH\r\n0ZEo+sJcIz/+WVJFKztx8TVbGSg/hQDImVE=\r\n=lOIv\r\n-----END PGP SIGNATURE-----\r\n","size":4492,"noattachment":false,"key":"/fs-minipass/-/fs-minipass-3.0.0.tgz"},"_npmUser":{"name":"lukekarrys","email":"luke@lukekarrys.com"},"directories":{},"maintainers":[{"name":"saquibkhan","email":"saquibkhan@github.com"},{"name":"fritzy","email":"fritzy@github.com"},{"name":"darcyclarke","email":"darcy@darcyclarke.me"},{"name":"nlf","email":"quitlahok@gmail.com"},{"name":"gar","email":"gar+npm@danger.computer"},{"name":"lukekarrys","email":"luke@lukekarrys.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fs-minipass_3.0.0_1670973419654_0.1358387811897248"},"_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":1670973419852,"_cnpm_publish_time":1670973419852,"dist-tags":{"latest":"3.0.3"}}