{"id":17398501,"url":"https://github.com/vweevers/fs-read-chunk","last_synced_at":"2025-03-29T20:15:34.701Z","repository":{"id":55828360,"uuid":"76895657","full_name":"vweevers/fs-read-chunk","owner":"vweevers","description":"Read n bytes of an fd or file","archived":false,"fork":false,"pushed_at":"2020-12-11T17:47:57.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-28T21:39:05.655Z","etag":null,"topics":[],"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/vweevers.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":"2016-12-19T20:41:09.000Z","updated_at":"2020-08-10T15:28:37.000Z","dependencies_parsed_at":"2022-08-15T07:31:19.450Z","dependency_job_id":null,"html_url":"https://github.com/vweevers/fs-read-chunk","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vweevers%2Ffs-read-chunk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vweevers%2Ffs-read-chunk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vweevers%2Ffs-read-chunk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vweevers%2Ffs-read-chunk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vweevers","download_url":"https://codeload.github.com/vweevers/fs-read-chunk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246237436,"owners_count":20745348,"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":[],"created_at":"2024-10-16T14:57:38.244Z","updated_at":"2025-03-29T20:15:34.676Z","avatar_url":"https://github.com/vweevers.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fs-read-chunk\n\n**Read n bytes of an fd or file.**\n\n[![npm status](http://img.shields.io/npm/v/fs-read-chunk.svg?style=flat-square)](https://www.npmjs.org/package/fs-read-chunk) [![node](https://img.shields.io/node/v/fs-read-chunk.svg?style=flat-square)](https://www.npmjs.org/package/fs-read-chunk) [![Travis build status](https://img.shields.io/travis/vweevers/fs-read-chunk.svg?style=flat-square\u0026label=travis)](http://travis-ci.org/vweevers/fs-read-chunk) [![AppVeyor build status](https://img.shields.io/appveyor/ci/vweevers/fs-read-chunk.svg?style=flat-square\u0026label=appveyor)](https://ci.appveyor.com/project/vweevers/fs-read-chunk) [![Dependency status](https://img.shields.io/david/vweevers/fs-read-chunk.svg?style=flat-square)](https://david-dm.org/vweevers/fs-read-chunk)\n\n## example\n\n```js\nconst readChunk = require('fs-read-chunk')\n\nreadChunk('readme.md', 0, 15, function (err, chunk) {\n  console.log(chunk.toString()) // '# fs-read-chunk'\n})\n```\n\n## `readChunk(mixed, pos, length, callback)`\n\nWhere `mixed` is either a filename or a file descriptor.\n\n## install\n\nWith [npm](https://npmjs.org) do:\n\n```\nnpm install fs-read-chunk\n```\n\n## license\n\n[MIT](http://opensource.org/licenses/MIT) © Vincent Weevers\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvweevers%2Ffs-read-chunk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvweevers%2Ffs-read-chunk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvweevers%2Ffs-read-chunk/lists"}