Gathering detailed insights and metrics for @types/range-parser
Gathering detailed insights and metrics for @types/range-parser
Gathering detailed insights and metrics for @types/range-parser
Gathering detailed insights and metrics for @types/range-parser
The repository for high quality TypeScript type definitions.
npm install @types/range-parser
Typescript
Module System
TypeScript (99.84%)
JavaScript (0.15%)
Shell (0.01%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
NOASSERTION License
50,028 Stars
89,737 Commits
30,433 Forks
640 Watchers
6 Branches
9,957 Contributors
Updated on Jul 13, 2025
Latest Version
1.2.7
Package Id
@types/range-parser@1.2.7
Unpacked Size
4.51 kB
Size
1.93 kB
File Count
5
Published on
Nov 07, 2023
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
npm install --save @types/range-parser
This package contains type definitions for range-parser (https://github.com/jshttp/range-parser).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/range-parser.
1/** 2 * When ranges are returned, the array has a "type" property which is the type of 3 * range that is required (most commonly, "bytes"). Each array element is an object 4 * with a "start" and "end" property for the portion of the range. 5 * 6 * @returns `-1` when unsatisfiable and `-2` when syntactically invalid, ranges otherwise. 7 */ 8declare function RangeParser( 9 size: number, 10 str: string, 11 options?: RangeParser.Options, 12): RangeParser.Result | RangeParser.Ranges; 13 14declare namespace RangeParser { 15 interface Ranges extends Array<Range> { 16 type: string; 17 } 18 interface Range { 19 start: number; 20 end: number; 21 } 22 interface Options { 23 /** 24 * The "combine" option can be set to `true` and overlapping & adjacent ranges 25 * will be combined into a single range. 26 */ 27 combine?: boolean | undefined; 28 } 29 type ResultUnsatisfiable = -1; 30 type ResultInvalid = -2; 31 type Result = ResultUnsatisfiable | ResultInvalid; 32} 33 34export = RangeParser; 35
These definitions were written by Tomek Łaziuk.
No vulnerabilities found.
Reason
30 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 10
Reason
security policy file detected
Details
Reason
no dangerous workflow patterns detected
Reason
0 existing vulnerabilities detected
Reason
no binaries found in the repo
Reason
Found 27/30 approved changesets -- score normalized to 9
Reason
license file detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 8
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
project is not fuzzed
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