{"_id":"@anio-fs/int--read-file-in-chunks","_rev":"5-462ba3853fc78b8d9fa17fb03f0c6de8","name":"@anio-fs/int--read-file-in-chunks","dist-tags":{"latest":"5.0.1"},"versions":{"3.0.0":{"name":"@anio-fs/int--read-file-in-chunks","version":"3.0.0","author":{"name":"Anio Software","email":"info@anio.software"},"license":"MIT","_id":"@anio-fs/int--read-file-in-chunks@3.0.0","maintainers":[{"name":"exory2024","email":"exory@anio.software"}],"homepage":"https://github.com/anio-fs-org/int--read-file-in-chunks#readme","bugs":{"url":"https://github.com/anio-fs-org/int--read-file-in-chunks/issues"},"dist":{"shasum":"f38a4bb514b548d7c02fffafd4d160b2340ce275","tarball":"https://registry.npmjs.org/@anio-fs/int--read-file-in-chunks/-/int--read-file-in-chunks-3.0.0.tgz","fileCount":7,"integrity":"sha512-3KEcBI52uovez2yC4xi7e2S9LKwMHA1qxMGXlG3ElJMv3UdnvUNMdFXMRqX5xgibkcbuiWUkM1HYdy174v5HnQ==","signatures":[{"sig":"MEUCIQDgXox/UNIcXzl/zauBisYFJ0dsWiVZko9RJL+85/JyfAIgMAZSNJ3kGpKCtUOpQ2qORFJNZSjq2YfBPOd3iAtBymA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@anio-fs%2fint--read-file-in-chunks@3.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":18097},"main":"./dist/package.min.mjs","gitHead":"7f8db431ff36163b2bb967b7e6ebe6bdd17c6fcd","scripts":{"prepare":"vipen ."},"typings":"./dist/index.d.ts","_npmUser":{"name":"exory2024","email":"exory@anio.software"},"repository":{"url":"git+https://github.com/anio-fs-org/int--read-file-in-chunks.git","type":"git"},"_npmVersion":"10.5.0","description":"Read a file in chunks asynchronously or synchronously.","directories":{},"_nodeVersion":"21.7.2","_hasShrinkwrap":false,"devDependencies":{"vipen":"^0.2.1","@anio-fs/api":"^4.0.0","@vipen/target-js":"^0.14.0"},"_npmOperationalInternal":{"tmp":"tmp/int--read-file-in-chunks_3.0.0_1712188541189_0.8625971992250476","host":"s3://npm-registry-packages"}},"3.0.1":{"name":"@anio-fs/int--read-file-in-chunks","version":"3.0.1","author":{"name":"Anio Software","email":"info@anio.software"},"license":"MIT","_id":"@anio-fs/int--read-file-in-chunks@3.0.1","maintainers":[{"name":"exory2024","email":"exory@anio.software"}],"homepage":"https://github.com/anio-fs-org/int--read-file-in-chunks#readme","bugs":{"url":"https://github.com/anio-fs-org/int--read-file-in-chunks/issues"},"dist":{"shasum":"08b08a4c3c050da767b70a33b5ca75354a154867","tarball":"https://registry.npmjs.org/@anio-fs/int--read-file-in-chunks/-/int--read-file-in-chunks-3.0.1.tgz","fileCount":7,"integrity":"sha512-DfeugyJnkHLDwyvTsGih9cEBEqtoEwIUXvyYvkc0mIANfx+6q7R3Yf8Hk3PD+KQOmjjumHWKGDqi/oiWrJALgQ==","signatures":[{"sig":"MEUCIQDzpwLPoDIJapfz2eb4aeeGi5MEcXob4TaVh4+E2BJXcQIgK7cOEqfmrPV23PjJoOsaRjkACWFWO1eDHOMV37qLez8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@anio-fs%2fint--read-file-in-chunks@3.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":18317},"main":"./dist/package.min.mjs","gitHead":"8cf4ca344bc1895274b13a1c9863713907e1f41d","scripts":{"prepare":"vipen ."},"typings":"./dist/index.d.ts","_npmUser":{"name":"exory2024","email":"exory@anio.software"},"repository":{"url":"git+https://github.com/anio-fs-org/int--read-file-in-chunks.git","type":"git"},"_npmVersion":"10.5.0","description":"Read a file in chunks asynchronously or synchronously.","directories":{},"_nodeVersion":"21.7.2","_hasShrinkwrap":false,"devDependencies":{"vipen":"^0.2.1","@anio-fs/api":"^4.0.0","@vipen/target-js":"^0.14.0"},"_npmOperationalInternal":{"tmp":"tmp/int--read-file-in-chunks_3.0.1_1712188739942_0.8423591776220591","host":"s3://npm-registry-packages"}},"3.0.2":{"name":"@anio-fs/int--read-file-in-chunks","version":"3.0.2","author":{"name":"Anio Software","email":"info@anio.software"},"license":"MIT","_id":"@anio-fs/int--read-file-in-chunks@3.0.2","maintainers":[{"name":"exory2024","email":"exory@anio.software"}],"homepage":"https://github.com/anio-fs-org/int--read-file-in-chunks#readme","bugs":{"url":"https://github.com/anio-fs-org/int--read-file-in-chunks/issues"},"dist":{"shasum":"c6a214c6550758165d956485d05ab035d1608a6d","tarball":"https://registry.npmjs.org/@anio-fs/int--read-file-in-chunks/-/int--read-file-in-chunks-3.0.2.tgz","fileCount":7,"integrity":"sha512-GkHtoJYk5lsdI4E3RVjhsXxWdT5tJgQ/xQQ0PIjkLJcS8kXehTKOITHy6OKT/urcCoXRBniPCczccMfyYJpXKQ==","signatures":[{"sig":"MEUCIQDMwgOx2U1fCeivOcFCpE4IsbLO5qqv2tBVwHJeV93IbAIgQtOL2RJooGs86MHR0OE6JOT7lDXZ0ygvlWKr2k/o/rc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@anio-fs%2fint--read-file-in-chunks@3.0.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":9733},"main":"./dist/package.min.mjs","gitHead":"237b5919182b2d6ae514bcd565fbc8aab55c71ce","scripts":{"prepare":"vipen ."},"typings":"./dist/index.d.ts","_npmUser":{"name":"exory2024","email":"exory@anio.software"},"repository":{"url":"git+https://github.com/anio-fs-org/int--read-file-in-chunks.git","type":"git"},"_npmVersion":"10.5.0","description":"Read a file in chunks asynchronously or synchronously.","directories":{},"_nodeVersion":"21.7.2","_hasShrinkwrap":false,"devDependencies":{"vipen":"^0.2.1","@anio-fs/api":"^5.0.2","@vipen/target-js":"^0.17.0"},"_npmOperationalInternal":{"tmp":"tmp/int--read-file-in-chunks_3.0.2_1712298593229_0.9046369575667008","host":"s3://npm-registry-packages"}},"4.0.0":{"name":"@anio-fs/int--read-file-in-chunks","version":"4.0.0","author":{"name":"Anio Software","email":"info@anio.software"},"license":"MIT","_id":"@anio-fs/int--read-file-in-chunks@4.0.0","maintainers":[{"name":"exory2024","email":"exory@anio.software"}],"homepage":"https://github.com/anio-fs-org/int--read-file-in-chunks#readme","bugs":{"url":"https://github.com/anio-fs-org/int--read-file-in-chunks/issues"},"dist":{"shasum":"827c2175857cf05b1ce595013dbf95c65e1e22ee","tarball":"https://registry.npmjs.org/@anio-fs/int--read-file-in-chunks/-/int--read-file-in-chunks-4.0.0.tgz","fileCount":7,"integrity":"sha512-vtUBQLZUIL45VchNtEIK0620WJkJ4wAL4yAra3tci57JtyuTHuX0lEJdVIvyR+R1MZey3bLp43hyeQiFV/tYBw==","signatures":[{"sig":"MEQCIHNBc0P9229CMb0l1ylH85NKFYQksptQ+fM3qghkZikdAiA46R3fGA0WWuHKlFOz71uagx5ncGdknkd8TmjcWl+s4g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@anio-fs%2fint--read-file-in-chunks@4.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":9740},"main":"./dist/package.min.mjs","gitHead":"04d50d08b45daf601d809e9638692d4afab86f74","scripts":{"prepare":"fourtune ."},"typings":"./dist/index.d.ts","_npmUser":{"name":"exory2024","email":"exory@anio.software"},"repository":{"url":"git+https://github.com/anio-fs-org/int--read-file-in-chunks.git","type":"git"},"_npmVersion":"10.5.0","description":"Read a file in chunks asynchronously or synchronously.","directories":{},"_nodeVersion":"21.7.3","_hasShrinkwrap":false,"devDependencies":{"fourtune":"^0.0.1","@anio-fs/api":"^6.0.2","@fourtune/realm-js":"^0.1.0"},"_npmOperationalInternal":{"tmp":"tmp/int--read-file-in-chunks_4.0.0_1726904066178_0.32344130349020905","host":"s3://npm-registry-packages"}},"5.0.0":{"name":"@anio-fs/int--read-file-in-chunks","version":"5.0.0","author":{"name":"Anio Software","email":"info@anio.software"},"license":"MIT","_id":"@anio-fs/int--read-file-in-chunks@5.0.0","maintainers":[{"name":"exory2024","email":"exory@anio.software"}],"homepage":"https://github.com/anio-fs-org/int--read-file-in-chunks#readme","bugs":{"url":"https://github.com/anio-fs-org/int--read-file-in-chunks/issues"},"dist":{"shasum":"21e58d89a03059d43e30014462bcd2129a9ae4b5","tarball":"https://registry.npmjs.org/@anio-fs/int--read-file-in-chunks/-/int--read-file-in-chunks-5.0.0.tgz","fileCount":10,"integrity":"sha512-n2ze4M/+V/Gv1dpsyu5axqthwkbYoeOVT9Dn0QLX5qwXL4Qe0OTZC4uPocmk1DYBcQmitAsu6ap9YDrFOp5Ldg==","signatures":[{"sig":"MEUCIFI1jrAxU+qGJtaSAKVEYuwNhaLTaRPa+e/AidbU44blAiEA9dVUKYgXYT+RnrP0dbcMy75zrbcbcnXNHNRQMPI17Zw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@anio-fs%2fint--read-file-in-chunks@5.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":32047},"main":"./dist/package.min.mjs","gitHead":"0abbf6fb72095fbf2e1cc454dc2d6c9654e8066a","scripts":{"prepare":"fourtune ."},"typings":"./dist/index.d.ts","_npmUser":{"name":"exory2024","email":"exory@anio.software"},"repository":{"url":"git+https://github.com/anio-fs-org/int--read-file-in-chunks.git","type":"git"},"_npmVersion":"10.5.0","description":"Read a file in chunks asynchronously or synchronously.","directories":{},"_nodeVersion":"21.7.3","_hasShrinkwrap":false,"devDependencies":{"fourtune":"^0.600.0","@anio-fs/api":"^9.0.0","@fourtune/core":"^0.100.0","@fourtune/realm-js":"^0.800.0-alpha.2"},"_npmOperationalInternal":{"tmp":"tmp/int--read-file-in-chunks_5.0.0_1731178035517_0.11453395716245485","host":"s3://npm-registry-packages"}},"5.0.1":{"name":"@anio-fs/int--read-file-in-chunks","type":"module","version":"5.0.1","description":"Read a file in chunks asynchronously or synchronously.","exports":{".":{"import":"./dist/default/index.min.mjs","types":"./dist/default/index.d.mts"}},"author":{"name":"Anio Software","email":"info@anio.software"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/anio-fs-org/int--read-file-in-chunks.git"},"devDependencies":{"@anio-fs/api":"^9.0.0","@fourtune/core":"^0.100.0","@fourtune/realm-js":"^0.800.0-alpha.2","fourtune":"^0.600.0"},"scripts":{"prepare":"fourtune ."},"_id":"@anio-fs/int--read-file-in-chunks@5.0.1","gitHead":"3701fe4cc9ded5f7bbd9d9ecd2d92b5920d8ad01","bugs":{"url":"https://github.com/anio-fs-org/int--read-file-in-chunks/issues"},"homepage":"https://github.com/anio-fs-org/int--read-file-in-chunks#readme","_nodeVersion":"21.7.3","_npmVersion":"10.5.0","dist":{"integrity":"sha512-yhOc35P6WklC6qmmjXfXYCbiFk8HsLxkNfdSmxjoiRcw9PJj5eu7DzuR7DElEThD7GCgHG7zYKCmeTH3IRyrrQ==","shasum":"8aebee4ddc2bc7718e4bcf9113c58f9fc0b8acd3","tarball":"https://registry.npmjs.org/@anio-fs/int--read-file-in-chunks/-/int--read-file-in-chunks-5.0.1.tgz","fileCount":10,"unpackedSize":33058,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@anio-fs%2fint--read-file-in-chunks@5.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDcDu94xLbRQtS7i3lvVQoqswAB96Aw6dwBDSBT3kUjagIhALU+ckYeCYOuRG6631bz06dq5pRTcsQqWNhP+CsQwU6r"}]},"_npmUser":{"name":"exory2024","email":"exory@anio.software"},"directories":{},"maintainers":[{"name":"exory2024","email":"exory@anio.software"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/int--read-file-in-chunks_5.0.1_1731178846747_0.2761200145390019"},"_hasShrinkwrap":false}},"time":{"created":"2024-04-03T23:55:41.083Z","modified":"2024-11-09T19:00:47.340Z","3.0.0":"2024-04-03T23:55:41.355Z","3.0.1":"2024-04-03T23:59:00.101Z","3.0.2":"2024-04-05T06:29:53.405Z","4.0.0":"2024-09-21T07:34:26.361Z","5.0.0":"2024-11-09T18:47:15.697Z","5.0.1":"2024-11-09T19:00:46.935Z"},"bugs":{"url":"https://github.com/anio-fs-org/int--read-file-in-chunks/issues"},"author":{"name":"Anio Software","email":"info@anio.software"},"license":"MIT","homepage":"https://github.com/anio-fs-org/int--read-file-in-chunks#readme","repository":{"type":"git","url":"git+https://github.com/anio-fs-org/int--read-file-in-chunks.git"},"description":"Read a file in chunks asynchronously or synchronously.","maintainers":[{"name":"exory2024","email":"exory@anio.software"}],"readme":"# @anio-fs/int--read-file-in-chunks\n\nRead a file in chunks asynchronously or synchronously.\n\n```js\nimport {readFileInChunks} from \"@anio-fs/int--read-file-in-chunks\"\nimport {createHash} from \"node:crypto\"\n\nconst file = await readFileInChunks(\"./src/index.mjs\", 18)\nconst hash = createHash(\"sha256\")\n\nwhile (true) {\n\tconst buffer = await file.readNextChunk()\n\n\tif (!buffer) break\n\n\thash.update(buffer)\n}\n\nawait file.close()\n\nhash.setEncoding(\"hex\")\nhash.end()\n\nconsole.log(hash.read())\n```\n","readmeFilename":"README.md"}