Debian Codegraph @

workspaces/arborist/test/fixtures/registry-mocks/content/range-parser.json

raw
1 {
2 "_id": "range-parser",
3 "_rev": "37-b40ccccaf5dbba422755f7105073a391",
4 "name": "range-parser",
5 "description": "Range header field string parser",
6 "dist-tags": {
7 "latest": "1.2.1"
8 },
9 "versions": {
10 "0.0.1": {
11 "name": "range-parser",
12 "author": {
13 "name": "TJ Holowaychuk",
14 "email": "[email protected]",
15 "url": "http://tjholowaychuk.com"
16 },
17 "description": "Range header field string parser",
18 "version": "0.0.1",
19 "main": "index.js",
20 "dependencies": {},
21 "devDependencies": {
22 "mocha": "*",
23 "should": "*"
24 },
25 "_npmUser": {
26 "name": "tjholowaychuk",
27 "email": "[email protected]"
28 },
29 "_id": "[email protected]",
30 "optionalDependencies": {},
31 "engines": {
32 "node": "*"
33 },
34 "_engineSupported": true,
35 "_npmVersion": "1.1.24",
36 "_nodeVersion": "v0.6.19",
37 "_defaultsLoaded": true,
38 "dist": {
39 "shasum": "dec6a8b9792caaef485e733b75b5b73fc7095770",
40 "tarball": "https://registry.npmjs.org/range-parser/-/range-parser-0.0.1.tgz"
41 },
42 "maintainers": [
43 {
44 "name": "tjholowaychuk",
45 "email": "[email protected]"
46 }
47 ],
48 "directories": {}
49 },
50 "0.0.2": {
51 "name": "range-parser",
52 "author": {
53 "name": "TJ Holowaychuk",
54 "email": "[email protected]",
55 "url": "http://tjholowaychuk.com"
56 },
57 "description": "Range header field string parser",
58 "version": "0.0.2",
59 "main": "index.js",
60 "dependencies": {},
61 "devDependencies": {
62 "mocha": "*",
63 "should": "*"
64 },
65 "_npmUser": {
66 "name": "tjholowaychuk",
67 "email": "[email protected]"
68 },
69 "_id": "[email protected]",
70 "optionalDependencies": {},
71 "engines": {
72 "node": "*"
73 },
74 "_engineSupported": true,
75 "_npmVersion": "1.1.19",
76 "_nodeVersion": "v0.6.16",
77 "_defaultsLoaded": true,
78 "dist": {
79 "shasum": "034fafbd8b266f64d8effe8fa638392b2290b288",
80 "tarball": "https://registry.npmjs.org/range-parser/-/range-parser-0.0.2.tgz"
81 },
82 "maintainers": [
83 {
84 "name": "tjholowaychuk",
85 "email": "[email protected]"
86 }
87 ],
88 "directories": {}
89 },
90 "0.0.3": {
91 "name": "range-parser",
92 "author": {
93 "name": "TJ Holowaychuk",
94 "email": "[email protected]",
95 "url": "http://tjholowaychuk.com"
96 },
97 "description": "Range header field string parser",
98 "version": "0.0.3",
99 "main": "index.js",
100 "dependencies": {},
101 "devDependencies": {
102 "mocha": "*",
103 "should": "*"
104 },
105 "_npmUser": {
106 "name": "tjholowaychuk",
107 "email": "[email protected]"
108 },
109 "_id": "[email protected]",
110 "optionalDependencies": {},
111 "engines": {
112 "node": "*"
113 },
114 "_engineSupported": true,
115 "_npmVersion": "1.1.19",
116 "_nodeVersion": "v0.6.16",
117 "_defaultsLoaded": true,
118 "dist": {
119 "shasum": "6e6488fb73843bd4bd626797f76b870da9765ae9",
120 "tarball": "https://registry.npmjs.org/range-parser/-/range-parser-0.0.3.tgz"
121 },
122 "maintainers": [
123 {
124 "name": "tjholowaychuk",
125 "email": "[email protected]"
126 }
127 ],
128 "directories": {}
129 },
130 "0.0.4": {
131 "name": "range-parser",
132 "author": {
133 "name": "TJ Holowaychuk",
134 "email": "[email protected]",
135 "url": "http://tjholowaychuk.com"
136 },
137 "description": "Range header field string parser",
138 "version": "0.0.4",
139 "main": "index.js",
140 "dependencies": {},
141 "devDependencies": {
142 "mocha": "*",
143 "should": "*"
144 },
145 "_npmUser": {
146 "name": "tjholowaychuk",
147 "email": "[email protected]"
148 },
149 "_id": "[email protected]",
150 "optionalDependencies": {},
151 "engines": {
152 "node": "*"
153 },
154 "_engineSupported": true,
155 "_npmVersion": "1.1.19",
156 "_nodeVersion": "v0.6.16",
157 "_defaultsLoaded": true,
158 "dist": {
159 "shasum": "c0427ffef51c10acba0782a46c9602e744ff620b",
160 "tarball": "https://registry.npmjs.org/range-parser/-/range-parser-0.0.4.tgz"
161 },
162 "maintainers": [
163 {
164 "name": "tjholowaychuk",
165 "email": "[email protected]"
166 }
167 ],
168 "directories": {}
169 },
170 "1.0.0": {
171 "name": "range-parser",
172 "author": {
173 "name": "TJ Holowaychuk",
174 "email": "[email protected]",
175 "url": "http://tjholowaychuk.com"
176 },
177 "description": "Range header field string parser",
178 "version": "1.0.0",
179 "repository": {
180 "type": "git",
181 "url": "https://github.com/visionmedia/node-range-parser.git"
182 },
183 "main": "index.js",
184 "dependencies": {},
185 "devDependencies": {
186 "mocha": "*",
187 "should": "*"
188 },
189 "licenses": [
190 {
191 "type": "MIT",
192 "url": "https://github.com/visionmedia/node-range-parser#license"
193 }
194 ],
195 "bugs": {
196 "url": "https://github.com/visionmedia/node-range-parser/issues"
197 },
198 "_id": "[email protected]",
199 "dist": {
200 "shasum": "a4b264cfe0be5ce36abe3765ac9c2a248746dbc0",
201 "tarball": "https://registry.npmjs.org/range-parser/-/range-parser-1.0.0.tgz"
202 },
203 "_from": ".",
204 "_npmVersion": "1.2.30",
205 "_npmUser": {
206 "name": "tjholowaychuk",
207 "email": "[email protected]"
208 },
209 "maintainers": [
210 {
211 "name": "tjholowaychuk",
212 "email": "[email protected]"
213 }
214 ],
215 "directories": {}
216 },
217 "1.0.1": {
218 "name": "range-parser",
219 "author": {
220 "name": "TJ Holowaychuk",
221 "email": "[email protected]",
222 "url": "http://tjholowaychuk.com"
223 },
224 "description": "Range header field string parser",
225 "version": "1.0.1",
226 "repository": {
227 "type": "git",
228 "url": "https://github.com/jshttp/range-parser"
229 },
230 "devDependencies": {
231 "istanbul": "0",
232 "mocha": "1",
233 "should": "2"
234 },
235 "license": "MIT",
236 "scripts": {
237 "test": "mocha --reporter spec --require should",
238 "test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --require should",
239 "test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter dot --require should"
240 },
241 "keywords": [
242 "range",
243 "parser",
244 "http"
245 ],
246 "files": [
247 "index.js"
248 ],
249 "gitHead": "9d84686c20af96aef0941d90cf254b31d6172049",
250 "bugs": {
251 "url": "https://github.com/jshttp/range-parser/issues"
252 },
253 "homepage": "https://github.com/jshttp/range-parser",
254 "_id": "[email protected]",
255 "_shasum": "f9da15b7451fe1b261959b63342dd92921d34da2",
256 "_from": ".",
257 "_npmVersion": "1.4.21",
258 "_npmUser": {
259 "name": "jongleberry",
260 "email": "[email protected]"
261 },
262 "maintainers": [
263 {
264 "name": "tjholowaychuk",
265 "email": "[email protected]"
266 },
267 {
268 "name": "jonathanong",
269 "email": "[email protected]"
270 },
271 {
272 "name": "dougwilson",
273 "email": "[email protected]"
274 },
275 {
276 "name": "jongleberry",
277 "email": "[email protected]"
278 }
279 ],
280 "dist": {
281 "shasum": "f9da15b7451fe1b261959b63342dd92921d34da2",
282 "tarball": "https://registry.npmjs.org/range-parser/-/range-parser-1.0.1.tgz"
283 },
284 "directories": {}
285 },
286 "1.0.2": {
287 "name": "range-parser",
288 "author": {
289 "name": "TJ Holowaychuk",
290 "email": "[email protected]",
291 "url": "http://tjholowaychuk.com"
292 },
293 "description": "Range header field string parser",
294 "version": "1.0.2",
295 "license": "MIT",
296 "keywords": [
297 "range",
298 "parser",
299 "http"
300 ],
301 "repository": {
302 "type": "git",
303 "url": "https://github.com/jshttp/range-parser"
304 },
305 "devDependencies": {
306 "istanbul": "0",
307 "mocha": "1",
308 "should": "2"
309 },
310 "files": [
311 "HISTORY.md",
312 "LICENSE",
313 "index.js"
314 ],
315 "engines": {
316 "node": ">= 0.6"
317 },
318 "scripts": {
319 "test": "mocha --reporter spec --require should",
320 "test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --require should",
321 "test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter dot --require should"
322 },
323 "gitHead": "ae23b02ce705b56e7f7c48e832d41fa710227ecc",
324 "bugs": {
325 "url": "https://github.com/jshttp/range-parser/issues"
326 },
327 "homepage": "https://github.com/jshttp/range-parser",
328 "_id": "[email protected]",
329 "_shasum": "06a12a42e5131ba8e457cd892044867f2344e549",
330 "_from": ".",
331 "_npmVersion": "1.4.21",
332 "_npmUser": {
333 "name": "dougwilson",
334 "email": "[email protected]"
335 },
336 "maintainers": [
337 {
338 "name": "tjholowaychuk",
339 "email": "[email protected]"
340 },
341 {
342 "name": "jonathanong",
343 "email": "[email protected]"
344 },
345 {
346 "name": "dougwilson",
347 "email": "[email protected]"
348 },
349 {
350 "name": "jongleberry",
351 "email": "[email protected]"
352 }
353 ],
354 "dist": {
355 "shasum": "06a12a42e5131ba8e457cd892044867f2344e549",
356 "tarball": "https://registry.npmjs.org/range-parser/-/range-parser-1.0.2.tgz"
357 },
358 "directories": {}
359 },
360 "1.0.3": {
361 "name": "range-parser",
362 "author": {
363 "name": "TJ Holowaychuk",
364 "email": "[email protected]",
365 "url": "http://tjholowaychuk.com"
366 },
367 "description": "Range header field string parser",
368 "version": "1.0.3",
369 "license": "MIT",
370 "keywords": [
371 "range",
372 "parser",
373 "http"
374 ],
375 "repository": {
376 "type": "git",
377 "url": "https://github.com/jshttp/range-parser"
378 },
379 "devDependencies": {
380 "istanbul": "0.4.0",
381 "mocha": "1.21.5"
382 },
383 "files": [
384 "HISTORY.md",
385 "LICENSE",
386 "index.js"
387 ],
388 "engines": {
389 "node": ">= 0.6"
390 },
391 "scripts": {
392 "test": "mocha --reporter spec",
393 "test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot",
394 "test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter dot"
395 },
396 "gitHead": "18e46a3de74afff9f4e22717f11ddd6e9aa6d845",
397 "bugs": {
398 "url": "https://github.com/jshttp/range-parser/issues"
399 },
400 "homepage": "https://github.com/jshttp/range-parser",
401 "_id": "[email protected]",
402 "_shasum": "6872823535c692e2c2a0103826afd82c2e0ff175",
403 "_from": ".",
404 "_npmVersion": "1.4.28",
405 "_npmUser": {
406 "name": "dougwilson",
407 "email": "[email protected]"
408 },
409 "maintainers": [
410 {
411 "name": "tjholowaychuk",
412 "email": "[email protected]"
413 },
414 {
415 "name": "jonathanong",
416 "email": "[email protected]"
417 },
418 {
419 "name": "dougwilson",
420 "email": "[email protected]"
421 },
422 {
423 "name": "jongleberry",
424 "email": "[email protected]"
425 }
426 ],
427 "dist": {
428 "shasum": "6872823535c692e2c2a0103826afd82c2e0ff175",
429 "tarball": "https://registry.npmjs.org/range-parser/-/range-parser-1.0.3.tgz"
430 },
431 "directories": {}
432 },
433 "1.1.0": {
434 "name": "range-parser",
435 "author": {
436 "name": "TJ Holowaychuk",
437 "email": "[email protected]",
438 "url": "http://tjholowaychuk.com"
439 },
440 "description": "Range header field string parser",
441 "version": "1.1.0",
442 "contributors": [
443 {
444 "name": "Douglas Christopher Wilson",
445 "email": "[email protected]"
446 },
447 {
448 "name": "Jonathan Ong",
449 "email": "[email protected]",
450 "url": "http://jongleberry.com"
451 }
452 ],
453 "license": "MIT",
454 "keywords": [
455 "range",
456 "parser",
457 "http"
458 ],
459 "repository": {
460 "type": "git",
461 "url": "https://github.com/jshttp/range-parser"
462 },
463 "devDependencies": {
464 "eslint": "2.9.0",
465 "eslint-config-standard": "5.3.1",
466 "eslint-plugin-promise": "1.1.0",
467 "eslint-plugin-standard": "1.3.2",
468 "istanbul": "0.4.3",
469 "mocha": "1.21.5"
470 },
471 "files": [
472 "HISTORY.md",
473 "LICENSE",
474 "index.js"
475 ],
476 "engines": {
477 "node": ">= 0.6"
478 },
479 "scripts": {
480 "lint": "eslint **/*.js",
481 "test": "mocha --reporter spec",
482 "test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot",
483 "test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter dot"
484 },
485 "gitHead": "82089bc84646dc4165985f77798e91d3afc97f3c",
486 "bugs": {
487 "url": "https://github.com/jshttp/range-parser/issues"
488 },
489 "homepage": "https://github.com/jshttp/range-parser",
490 "_id": "[email protected]",
491 "_shasum": "425c2c5bf8b159d89513fe55f26c29d07b88512b",
492 "_from": ".",
493 "_npmVersion": "1.4.28",
494 "_npmUser": {
495 "name": "dougwilson",
496 "email": "[email protected]"
497 },
498 "maintainers": [
499 {
500 "name": "dougwilson",
501 "email": "[email protected]"
502 },
503 {
504 "name": "jonathanong",
505 "email": "[email protected]"
506 },
507 {
508 "name": "jongleberry",
509 "email": "[email protected]"
510 },
511 {
512 "name": "tjholowaychuk",
513 "email": "[email protected]"
514 }
515 ],
516 "dist": {
517 "shasum": "425c2c5bf8b159d89513fe55f26c29d07b88512b",
518 "tarball": "https://registry.npmjs.org/range-parser/-/range-parser-1.1.0.tgz"
519 },
520 "_npmOperationalInternal": {
521 "host": "packages-16-east.internal.npmjs.com",
522 "tmp": "tmp/range-parser-1.1.0.tgz_1463166914433_0.4869228946045041"
523 },
524 "directories": {}
525 },
526 "1.2.0": {
527 "name": "range-parser",
528 "author": {
529 "name": "TJ Holowaychuk",
530 "email": "[email protected]",
531 "url": "http://tjholowaychuk.com"
532 },
533 "description": "Range header field string parser",
534 "version": "1.2.0",
535 "contributors": [
536 {
537 "name": "Douglas Christopher Wilson",
538 "email": "[email protected]"
539 },
540 {
541 "name": "James Wyatt Cready",
542 "email": "[email protected]"
543 },
544 {
545 "name": "Jonathan Ong",
546 "email": "[email protected]",
547 "url": "http://jongleberry.com"
548 }
549 ],
550 "license": "MIT",
551 "keywords": [
552 "range",
553 "parser",
554 "http"
555 ],
556 "repository": {
557 "type": "git",
558 "url": "https://github.com/jshttp/range-parser"
559 },
560 "devDependencies": {
561 "eslint": "2.11.1",
562 "eslint-config-standard": "5.3.1",
563 "eslint-plugin-promise": "1.1.0",
564 "eslint-plugin-standard": "1.3.2",
565 "istanbul": "0.4.3",
566 "mocha": "1.21.5"
567 },
568 "files": [
569 "HISTORY.md",
570 "LICENSE",
571 "index.js"
572 ],
573 "engines": {
574 "node": ">= 0.6"
575 },
576 "scripts": {
577 "lint": "eslint **/*.js",
578 "test": "mocha --reporter spec",
579 "test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot",
580 "test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter dot"
581 },
582 "gitHead": "0665aca31639d799dee1d35fb10970799559ec48",
583 "bugs": {
584 "url": "https://github.com/jshttp/range-parser/issues"
585 },
586 "homepage": "https://github.com/jshttp/range-parser",
587 "_id": "[email protected]",
588 "_shasum": "f49be6b487894ddc40dcc94a322f611092e00d5e",
589 "_from": ".",
590 "_npmVersion": "1.4.28",
591 "_npmUser": {
592 "name": "dougwilson",
593 "email": "[email protected]"
594 },
595 "maintainers": [
596 {
597 "name": "dougwilson",
598 "email": "[email protected]"
599 },
600 {
601 "name": "jonathanong",
602 "email": "[email protected]"
603 },
604 {
605 "name": "jongleberry",
606 "email": "[email protected]"
607 },
608 {
609 "name": "tjholowaychuk",
610 "email": "[email protected]"
611 }
612 ],
613 "dist": {
614 "shasum": "f49be6b487894ddc40dcc94a322f611092e00d5e",
615 "tarball": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.0.tgz"
616 },
617 "_npmOperationalInternal": {
618 "host": "packages-16-east.internal.npmjs.com",
619 "tmp": "tmp/range-parser-1.2.0.tgz_1464803293097_0.6830497414339334"
620 },
621 "directories": {}
622 },
623 "1.2.1": {
624 "name": "range-parser",
625 "author": {
626 "name": "TJ Holowaychuk",
627 "email": "[email protected]",
628 "url": "http://tjholowaychuk.com"
629 },
630 "description": "Range header field string parser",
631 "version": "1.2.1",
632 "contributors": [
633 {
634 "name": "Douglas Christopher Wilson",
635 "email": "[email protected]"
636 },
637 {
638 "name": "James Wyatt Cready",
639 "email": "[email protected]"
640 },
641 {
642 "name": "Jonathan Ong",
643 "email": "[email protected]",
644 "url": "http://jongleberry.com"
645 }
646 ],
647 "license": "MIT",
648 "keywords": [
649 "range",
650 "parser",
651 "http"
652 ],
653 "repository": {
654 "type": "git",
655 "url": "git+https://github.com/jshttp/range-parser.git"
656 },
657 "devDependencies": {
658 "deep-equal": "1.0.1",
659 "eslint": "5.16.0",
660 "eslint-config-standard": "12.0.0",
661 "eslint-plugin-markdown": "1.0.0",
662 "eslint-plugin-import": "2.17.2",
663 "eslint-plugin-node": "8.0.1",
664 "eslint-plugin-promise": "4.1.1",
665 "eslint-plugin-standard": "4.0.0",
666 "mocha": "6.1.4",
667 "nyc": "14.1.1"
668 },
669 "engines": {
670 "node": ">= 0.6"
671 },
672 "scripts": {
673 "lint": "eslint --plugin markdown --ext js,md .",
674 "test": "mocha --reporter spec",
675 "test-cov": "nyc --reporter=html --reporter=text npm test",
676 "test-travis": "nyc --reporter=text npm test"
677 },
678 "gitHead": "0f56ff8d4b579599f9f225f0a19f4ef1628c585f",
679 "bugs": {
680 "url": "https://github.com/jshttp/range-parser/issues"
681 },
682 "homepage": "https://github.com/jshttp/range-parser#readme",
683 "_id": "[email protected]",
684 "_npmVersion": "6.4.1",
685 "_nodeVersion": "8.16.0",
686 "_npmUser": {
687 "name": "dougwilson",
688 "email": "[email protected]"
689 },
690 "dist": {
691 "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==",
692 "shasum": "3cf37023d199e1c24d1a55b84800c2f3e6468031",
693 "tarball": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz",
694 "fileCount": 5,
695 "unpackedSize": 8457,
696 "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc1hb6CRA9TVsSAnZWagAA6MIP/2aFx73ToT5iGRN0mgZw\nLy7BEmRQkblBxo81k9Cvjt8jucfv/PtDUllITbke596JI/jHnb5oU5XV5Fzd\nK1WklG8rJC9z1y9iEaEe4pRcnvkPvkHtFMmPcYS9dm5XQyYw9fYcApRl/6zH\neuV/1CtwzQnCCErvfmolfSQ13v1d4LyWwrMRcG79uOGYBm8XSuTb3fKrEbBj\n3Gms6SQA2mC5ntKrf6VQRXzWvGIvWp2Q3RGFkgI1fnEPFfq7DbNqvHiD+KV4\nXV2wOD6B8pBlpbpSdNMHfUBSVSMHqFv9rOJqJumBAEZeUcwQzO06/2kUw5/f\nWCaFTHYTMCvSNX9qg71EoRZuuvNS0E53quFagdmTxq2vf04vz01PgRc5G64m\nTlz07gVHos3CQ9fU4NP0Aim1rtgOLJj15IF+z/kSSQoQZ6DhW5aTs8zCa3AS\nk4xWFafBuzyG1ApCSJrRCsqzY+oRqHPyTSZx5fBv75qZIEKe4moBpJ6EkaqZ\nRc6EqCpJjwOZVOssoPN3RiP+f/g43ytkVmUoYSXTs2bpkwNQUJShg2ItsT55\nkxkfZx8YbNxkFKp8S/uwUGQjbmXXspWozrkKNHikpzWMgDmuj9k2fx3LPo0c\nDSEq295fDQlKdxcfuGpOkH1PSzMHuIef26IGNDjMlOyBSY2FrQJaxpYtpQYq\nw1FC\r\n=GGKV\r\n-----END PGP SIGNATURE-----\r\n"
697 },
698 "maintainers": [
699 {
700 "email": "[email protected]",
701 "name": "dougwilson"
702 },
703 {
704 "email": "[email protected]",
705 "name": "jonathanong"
706 },
707 {
708 "email": "[email protected]",
709 "name": "jongleberry"
710 },
711 {
712 "email": "[email protected]",
713 "name": "tjholowaychuk"
714 }
715 ],
716 "directories": {},
717 "_npmOperationalInternal": {
718 "host": "s3://npm-registry-packages",
719 "tmp": "tmp/range-parser_1.2.1_1557534457659_0.5973624508825055"
720 },
721 "_hasShrinkwrap": false
722 }
723 },
724 "readme": "# range-parser\n\n[![NPM Version][npm-version-image]][npm-url]\n[![NPM Downloads][npm-downloads-image]][npm-url]\n[![Node.js Version][node-image]][node-url]\n[![Build Status][travis-image]][travis-url]\n[![Test Coverage][coveralls-image]][coveralls-url]\n\nRange header field parser.\n\n## Installation\n\nThis is a [Node.js](https://nodejs.org/en/) module available through the\n[npm registry](https://www.npmjs.com/). Installation is done using the\n[`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally):\n\n```sh\n$ npm install range-parser\n```\n\n## API\n\n<!-- eslint-disable no-unused-vars -->\n\n```js\nvar parseRange = require('range-parser')\n```\n\n### parseRange(size, header, options)\n\nParse the given `header` string where `size` is the maximum size of the resource.\nAn array of ranges will be returned or negative numbers indicating an error parsing.\n\n * `-2` signals a malformed header string\n * `-1` signals an unsatisfiable range\n\n<!-- eslint-disable no-undef -->\n\n```js\n// parse header from request\nvar range = parseRange(size, req.headers.range)\n\n// the type of the range\nif (range.type === 'bytes') {\n // the ranges\n range.forEach(function (r) {\n // do something with r.start and r.end\n })\n}\n```\n\n#### Options\n\nThese properties are accepted in the options object.\n\n##### combine\n\nSpecifies if overlapping & adjacent ranges should be combined, defaults to `false`.\nWhen `true`, ranges will be combined and returned as if they were specified that\nway in the header.\n\n<!-- eslint-disable no-undef -->\n\n```js\nparseRange(100, 'bytes=50-55,0-10,5-10,56-60', { combine: true })\n// => [\n// { start: 0, end: 10 },\n// { start: 50, end: 60 }\n// ]\n```\n\n## License\n\n[MIT](LICENSE)\n\n[coveralls-image]: https://badgen.net/coveralls/c/github/jshttp/range-parser/master\n[coveralls-url]: https://coveralls.io/r/jshttp/range-parser?branch=master\n[node-image]: https://badgen.net/npm/node/range-parser\n[node-url]: https://nodejs.org/en/download\n[npm-downloads-image]: https://badgen.net/npm/dm/range-parser\n[npm-url]: https://npmjs.org/package/range-parser\n[npm-version-image]: https://badgen.net/npm/v/range-parser\n[travis-image]: https://badgen.net/travis/jshttp/range-parser/master\n[travis-url]: https://travis-ci.org/jshttp/range-parser\n",
725 "maintainers": [
726 {
727 "email": "[email protected]",
728 "name": "dougwilson"
729 },
730 {
731 "email": "[email protected]",
732 "name": "jonathanong"
733 },
734 {
735 "email": "[email protected]",
736 "name": "jongleberry"
737 },
738 {
739 "email": "[email protected]",
740 "name": "tjholowaychuk"
741 }
742 ],
743 "time": {
744 "modified": "2019-05-11T00:27:40.264Z",
745 "created": "2012-06-11T16:08:20.957Z",
746 "0.0.1": "2012-06-11T16:08:22.373Z",
747 "0.0.2": "2012-06-18T00:15:02.069Z",
748 "0.0.3": "2012-06-18T00:28:29.754Z",
749 "0.0.4": "2012-06-18T00:56:34.968Z",
750 "1.0.0": "2013-12-11T20:35:49.123Z",
751 "1.0.1": "2014-09-08T01:00:41.796Z",
752 "1.0.2": "2014-09-09T02:45:20.606Z",
753 "1.0.3": "2015-10-29T23:12:00.478Z",
754 "1.1.0": "2016-05-13T19:15:16.506Z",
755 "1.2.0": "2016-06-01T17:48:14.367Z",
756 "1.2.1": "2019-05-11T00:27:37.805Z"
757 },
758 "author": {
759 "name": "TJ Holowaychuk",
760 "email": "[email protected]",
761 "url": "http://tjholowaychuk.com"
762 },
763 "users": {
764 "m42am": true,
765 "abdul": true,
766 "simplyianm": true,
767 "shavyg2": true,
768 "glebec": true,
769 "mojaray2k": true,
770 "gpuente": true,
771 "hualei": true
772 },
773 "repository": {
774 "type": "git",
775 "url": "git+https://github.com/jshttp/range-parser.git"
776 },
777 "bugs": {
778 "url": "https://github.com/jshttp/range-parser/issues"
779 },
780 "readmeFilename": "README.md",
781 "homepage": "https://github.com/jshttp/range-parser#readme",
782 "keywords": [
783 "range",
784 "parser",
785 "http"
786 ],
787 "license": "MIT",
788 "contributors": [
789 {
790 "name": "Douglas Christopher Wilson",
791 "email": "[email protected]"
792 },
793 {
794 "name": "James Wyatt Cready",
795 "email": "[email protected]"
796 },
797 {
798 "name": "Jonathan Ong",
799 "email": "[email protected]",
800 "url": "http://jongleberry.com"
801 }
802 ]
803 }