{"name":"fs-minipass","version":"3.0.1","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.3","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.3"},"gitHead":"e39aded796f01a22adc01ad41af495bf039541b3","_id":"fs-minipass@3.0.1","_nodeVersion":"16.16.0","_npmVersion":"9.4.0","dist":{"integrity":"sha512-MhaJDcFRTuLidHrIttu0RDGyyXs/IYHVmlcxfLAEFIWjc1vdLAkdwT7Ace2u7DbitWC0toKMl5eJZRYNVreIMw==","shasum":"853809af15b6d03e27638d1ab6432e6b378b085d","tarball":"http://registry-npm.ywwl.com/fs-minipass/download/fs-minipass-3.0.1.tgz","fileCount":4,"unpackedSize":14386,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFDRl0oFglMouCr0jS7YQSim/l6UMSiupBJhiq9jaKX/AiEAm8dIsO+nBL0XAwOI5Z6Vfhjvd2+aRmlsHFAxGqTHZ3M="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj1/tMACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqnkw/8DthNkyGMN8HDx8W+8O92VBL05HN9gGDOqwqxGqBsmTjiFU8F\r\n7ESo0ff8/MtOlfO4bu2htLIp2y7ukq7eyTB9dDHOxPeOQHtL0kSNdmq1sgm9\r\n0YRfzJoKyW+uk9RT07PzsakXHtru9lj9LdSUI2eihmQ5VtAJWslGL/eRr3rR\r\nOG+E7zjbS3LUhDgN/w167Mbq5xP6tfLmOW+XzxzgiB0UrbvFqcLuPsxuJVTm\r\nn6hP6rTyMcYzpRkpRcq3ztIdwbrf/0C1Ds9pTH+lI7LkeNnPZcThZ9oUhTLe\r\n8oYVvmpltcgYQLJc2J4bnd2OeyA51ezeGCpBQupwlNZ9mWOujGkIY1UHwXpk\r\nHHPBYHKztgjX1FFcU7wPGpgfdWaw25BgQaX3QSMZzkiUVg6Mkmeq2IUl3juF\r\n/bHuKj3yRe6DDQR6gb+lxAyMf1/C61+vVA53QjR8mO7UfL5x5REBFdDEdyK9\r\n1pSm2obAe1Hi5+1Sr0GSWChgXL4p0O+ykMHy069A+GzEfFuCzQp6tByyNK87\r\nsqr3F4K2KE/jXmt6bsyxxszdNpdQtv4d/ffBzY0h6rcij4LjiHNBSxLa3NeH\r\nAEU5B2x5lE+BgwODFCqUO76VbchPsPwTw/SqMFaWPgeWJOIZmz7kMm2is7oP\r\ntjvrfLCv6ICBR6oRnXYD9iK/9XuuLVQJmTo=\r\n=dSGx\r\n-----END PGP SIGNATURE-----\r\n","size":4495,"noattachment":false,"key":"/fs-minipass/-/fs-minipass-3.0.1.tgz"},"_npmUser":{"name":"nlf","email":"quitlahok@gmail.com"},"directories":{},"maintainers":[{"name":"saquibkhan","email":"saquibkhan@github.com"},{"name":"fritzy","email":"fritzy@github.com"},{"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.1_1675098956090_0.5243042960176207"},"_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":1675098956273,"_cnpm_publish_time":1675098956273,"dist-tags":{"latest":"3.0.3"}}