{"id":17399266,"url":"https://github.com/feross/chunk-store-stream","last_synced_at":"2025-09-13T15:32:19.209Z","repository":{"id":36908377,"uuid":"41215407","full_name":"feross/chunk-store-stream","owner":"feross","description":"Convert an abstract-chunk-store compliant store into a readable or writable stream","archived":false,"fork":false,"pushed_at":"2022-07-04T17:03:33.000Z","size":42,"stargazers_count":25,"open_issues_count":2,"forks_count":6,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-03T02:53:08.217Z","etag":null,"topics":["abstract-chunk-store","chunk-store","chunk-store-stream","javascript","nodejs","stream","streams"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/feross.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-08-22T16:21:02.000Z","updated_at":"2024-09-25T09:11:10.000Z","dependencies_parsed_at":"2022-09-07T09:50:08.195Z","dependency_job_id":null,"html_url":"https://github.com/feross/chunk-store-stream","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feross%2Fchunk-store-stream","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feross%2Fchunk-store-stream/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feross%2Fchunk-store-stream/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feross%2Fchunk-store-stream/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/feross","download_url":"https://codeload.github.com/feross/chunk-store-stream/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232889038,"owners_count":18592311,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["abstract-chunk-store","chunk-store","chunk-store-stream","javascript","nodejs","stream","streams"],"created_at":"2024-10-16T15:14:30.195Z","updated_at":"2025-01-07T13:46:00.576Z","avatar_url":"https://github.com/feross.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# chunk-store-stream [![ci][ci-image]][ci-url] [![npm][npm-image]][npm-url] [![downloads][downloads-image]][downloads-url] [![javascript style guide][standard-image]][standard-url]\n\n[ci-image]: https://img.shields.io/github/workflow/status/feross/chunk-store-stream/ci/master\n[ci-url]: https://github.com/feross/chunk-store-stream/actions\n[npm-image]: https://img.shields.io/npm/v/chunk-store-stream.svg\n[npm-url]: https://npmjs.org/package/chunk-store-stream\n[downloads-image]: https://img.shields.io/npm/dm/chunk-store-stream.svg\n[downloads-url]: https://npmjs.org/package/chunk-store-stream\n[standard-image]: https://img.shields.io/badge/code_style-standard-brightgreen.svg\n[standard-url]: https://standardjs.com\n\n#### Convert an [abstract-chunk-store](https://github.com/mafintosh/abstract-chunk-store) store into a readable or writable stream\n\n[![abstract chunk store](https://cdn.rawgit.com/mafintosh/abstract-chunk-store/master/badge.svg)](https://github.com/mafintosh/abstract-chunk-store)\n\nRead/write data from/to a chunk store, with streams.\n\n## Install\n\n```\nnpm install chunk-store-stream\n```\n\n## Usage\n\n### Create a read stream\n\n``` js\nconst { ChunkStoreReadStream } = require('chunk-store-stream')\nconst FSChunkStore = require('fs-chunk-store') // any chunk store will work\n\nconst chunkLength = 3\nconst store = new FSChunkStore(chunkLength)\n\n// ... put some data in the store\n\nconst stream = new ChunkStoreReadStream(store, chunkLength, { length: 6 })\nstream.pipe(process.stdout)\n```\n\n### Create a write stream\n\n```js\nconst { ChunkStoreWriteStream } = require('chunk-store-stream')\nconst FSChunkStore = require('fs-chunk-store') // any chunk store will work\nconst fs = require('fs')\n\nconst chunkLength = 3\nconst store = new FSChunkStore(chunkLength)\n\nconst stream = new ChunkStoreWriteStream(store, chunkLength)\nfs.createReadStream('file.txt').pipe(stream)\n```\n\n## License\n\nMIT. Copyright (c) [Feross Aboukhadijeh](https://feross.org).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffeross%2Fchunk-store-stream","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffeross%2Fchunk-store-stream","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffeross%2Fchunk-store-stream/lists"}