Gathering detailed insights and metrics for range-parser
Gathering detailed insights and metrics for range-parser
Gathering detailed insights and metrics for range-parser
Gathering detailed insights and metrics for range-parser
npm install range-parser
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
93 Stars
161 Commits
19 Forks
10 Watchers
13 Branches
28 Contributors
Updated on Jun 05, 2025
Latest Version
1.2.1
Package Id
range-parser@1.2.1
Size
3.52 kB
NPM Version
6.4.1
Node Version
8.16.0
Published on
May 11, 2019
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
Range header field parser.
This is a Node.js module available through the
npm registry. Installation is done using the
npm install
command:
1$ npm install range-parser
1var parseRange = require('range-parser')
Parse the given header
string where size
is the maximum size of the resource.
An array of ranges will be returned or negative numbers indicating an error parsing.
-2
signals a malformed header string-1
signals an unsatisfiable range1// parse header from request 2var range = parseRange(size, req.headers.range) 3 4// the type of the range 5if (range.type === 'bytes') { 6 // the ranges 7 range.forEach(function (r) { 8 // do something with r.start and r.end 9 }) 10}
These properties are accepted in the options object.
Specifies if overlapping & adjacent ranges should be combined, defaults to false
.
When true
, ranges will be combined and returned as if they were specified that
way in the header.
1parseRange(100, 'bytes=50-55,0-10,5-10,56-60', { combine: true }) 2// => [ 3// { start: 0, end: 10 }, 4// { start: 50, end: 60 } 5// ]
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
GitHub workflow tokens follow principle of least privilege
Details
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
security policy file detected
Details
Reason
SAST tool detected but not run on all commits
Details
Reason
dependency not pinned by hash detected -- score normalized to 2
Details
Reason
1 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 2/30 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More