{"id":22096496,"url":"https://github.com/uphold/range-specifier-parser","last_synced_at":"2025-08-18T07:10:51.814Z","repository":{"id":26476162,"uuid":"29927959","full_name":"uphold/range-specifier-parser","owner":"uphold","description":"Range Specifier Parser","archived":false,"fork":false,"pushed_at":"2023-04-09T21:33:55.000Z","size":80,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":55,"default_branch":"master","last_synced_at":"2025-06-02T09:09:30.878Z","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/uphold.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-01-27T18:21:35.000Z","updated_at":"2021-03-12T17:43:55.000Z","dependencies_parsed_at":"2024-06-20T00:07:32.648Z","dependency_job_id":"f4796731-ecca-4497-a237-172bf0375b9a","html_url":"https://github.com/uphold/range-specifier-parser","commit_stats":null,"previous_names":["seegno/range-specifier-parser"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/uphold/range-specifier-parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uphold%2Frange-specifier-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uphold%2Frange-specifier-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uphold%2Frange-specifier-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uphold%2Frange-specifier-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uphold","download_url":"https://codeload.github.com/uphold/range-specifier-parser/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uphold%2Frange-specifier-parser/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262925001,"owners_count":23385462,"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-12-01T04:11:15.362Z","updated_at":"2025-07-01T08:08:50.489Z","avatar_url":"https://github.com/uphold.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Range Specifier Parser\n\n[![npm version][npm-image]][npm-url] [![build status][travis-image]][travis-url]\n\nA parser to handle [Range Pagination Headers](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html).\n\n_Inspired by [range-parser](https://github.com/jshttp/range-parser)_.\n\n## Installation\n\n`npm install --save range-specifier-parser`\n\n## Usage\n\nThe parser receives a `byte-ranges-specifier` as its only argument.\n\n```javascript\nimport parser from 'range-specifier-parser';\n\nparser('bytes=0-499');\n```\n\n## Output\n\nThe parser outputs an object with the following properties according to the [Byte Ranges](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35.1) spec:\n\n```javascript\n{\n  first: 0, // `first-byte-pos`.\n  last: 499, // `last-byte-pos`.\n  unit: 'bytes' // `bytes-unit`.\n}\n```\n\n## Running tests\n\n```sh\nnpm test\n```\n\n## Release\n\n`npm version [\u003cnewversion\u003e | major | minor | patch] -m \"Release %s\"`\n\n## License\n\nMIT\n\n[npm-image]: https://img.shields.io/npm/v/range-specifier-parser.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/range-specifier-parser\n[travis-image]: https://img.shields.io/travis/seegno/range-specifier-parser.svg?style=flat-square\n[travis-url]: https://travis-ci.org/seegno/range-specifier-parser\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuphold%2Frange-specifier-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuphold%2Frange-specifier-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuphold%2Frange-specifier-parser/lists"}