{"_id":"@types/range-parser","_rev":"3075025","name":"@types/range-parser","description":"TypeScript definitions for range-parser","dist-tags":{"latest":"1.2.7","ts2.0":"1.2.3","ts2.1":"1.2.3","ts2.2":"1.2.3","ts2.3":"1.2.3","ts2.4":"1.2.3","ts2.5":"1.2.3","ts2.6":"1.2.3","ts2.7":"1.2.3","ts2.8":"1.2.3","ts2.9":"1.2.3","ts3.0":"1.2.3","ts3.1":"1.2.3","ts3.2":"1.2.3","ts3.3":"1.2.3","ts3.4":"1.2.3","ts3.5":"1.2.3","ts3.6":"1.2.4","ts3.7":"1.2.4","ts3.8":"1.2.4","ts3.9":"1.2.4","ts4.0":"1.2.4","ts4.1":"1.2.4","ts4.2":"1.2.4","ts4.3":"1.2.4","ts4.4":"1.2.4","ts4.5":"1.2.7","ts4.6":"1.2.7","ts4.7":"1.2.7","ts4.8":"1.2.7","ts4.9":"1.2.7","ts5.0":"1.2.7","ts5.1":"1.2.7","ts5.2":"1.2.7","ts5.3":"1.2.7","ts5.4":"1.2.7","ts5.5":"1.2.7","ts5.6":"1.2.7","ts5.7":"1.2.7","ts5.8":"1.2.7","ts5.9":"1.2.7","ts6.0":"1.2.7"},"maintainers":[{"name":"types","email":""}],"time":{"modified":"2025-09-01T01:04:52.000Z","created":"2017-02-10T22:24:58.914Z","1.2.7":"2023-11-07T13:45:22.371Z","1.2.6":"2023-10-18T11:52:25.074Z","1.2.5":"2023-09-27T07:15:57.606Z","1.2.4":"2021-07-07T17:23:06.370Z","1.2.3":"2018-12-07T19:22:20.247Z","1.2.2":"2018-06-05T00:05:25.693Z","1.2.1":"2017-03-31T18:07:25.837Z","1.2.0":"2017-02-10T22:24:58.914Z"},"users":{},"repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/range-parser"},"versions":{"1.2.7":{"name":"@types/range-parser","version":"1.2.7","description":"TypeScript definitions for range-parser","homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/range-parser","license":"MIT","contributors":[{"name":"Tomek Łaziuk","githubUsername":"tlaziuk","url":"https://github.com/tlaziuk"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/range-parser"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"85ed88e3afe8da85360c400901b67e99a7c6690c6376c5ab8939ae9dee4b0a93","typeScriptVersion":"4.5","_id":"@types/range-parser@1.2.7","dist":{"shasum":"50ae4353eaaddc04044279812f52c8c65857dbcb","size":1980,"noattachment":false,"key":"/@types/range-parser/-/@types/range-parser-1.2.7.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/range-parser/download/@types/range-parser-1.2.7.tgz"},"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"maintainers":[{"name":"types","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/range-parser_1.2.7_1699364722194_0.6193198982191708"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-11-07T13:45:22.371Z","publish_time":1699364722371,"_source_registry_name":"default","_cnpm_publish_time":1699364722371},"1.2.6":{"name":"@types/range-parser","version":"1.2.6","description":"TypeScript definitions for range-parser","homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/range-parser","license":"MIT","contributors":[{"name":"Tomek Łaziuk","githubUsername":"tlaziuk","url":"https://github.com/tlaziuk"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/range-parser"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"f26a7f678b4f7cef674af5601ff55e725ce22887f1e42b6c10164abeda1571e3","typeScriptVersion":"4.5","_id":"@types/range-parser@1.2.6","dist":{"shasum":"7cb33992049fd7340d5b10c0098e104184dfcd2a","size":1976,"noattachment":false,"key":"/@types/range-parser/-/@types/range-parser-1.2.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/range-parser/download/@types/range-parser-1.2.6.tgz"},"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"maintainers":[{"name":"types","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/range-parser_1.2.6_1697629944843_0.9758060640433115"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-10-18T11:52:25.074Z","publish_time":1697629945074,"_source_registry_name":"default","_cnpm_publish_time":1697629945074},"1.2.5":{"name":"@types/range-parser","version":"1.2.5","description":"TypeScript definitions for range-parser","homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/range-parser","license":"MIT","contributors":[{"name":"Tomek Łaziuk","url":"https://github.com/tlaziuk","githubUsername":"tlaziuk"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/range-parser"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"8cae3d90a5b621ab27c73380a07b6fd2a6e37a7b5a67925e388e34a116580b9b","typeScriptVersion":"4.5","_id":"@types/range-parser@1.2.5","dist":{"shasum":"38bd1733ae299620771bd414837ade2e57757498","size":2038,"noattachment":false,"key":"/@types/range-parser/-/@types/range-parser-1.2.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/range-parser/download/@types/range-parser-1.2.5.tgz"},"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"maintainers":[{"name":"types","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/range-parser_1.2.5_1695798957393_0.9340438922580006"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-09-27T07:15:57.606Z","publish_time":1695798957606,"_source_registry_name":"default","_cnpm_publish_time":1695798957606},"1.2.4":{"name":"@types/range-parser","version":"1.2.4","description":"TypeScript definitions for range-parser","homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/range-parser","license":"MIT","contributors":[{"name":"Tomek Łaziuk","url":"https://github.com/tlaziuk","githubUsername":"tlaziuk"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/range-parser"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"60a027a88ae9d7c5ae30935c98266f5033af3c38944121c975bf5e136b9053f3","typeScriptVersion":"3.6","_id":"@types/range-parser@1.2.4","dist":{"shasum":"cd667bcfdd025213aafb7ca5915a932590acdcdc","size":1977,"noattachment":false,"key":"/@types/range-parser/-/@types/range-parser-1.2.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/range-parser/download/@types/range-parser-1.2.4.tgz"},"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"maintainers":[{"name":"types","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/range-parser_1.2.4_1625678586204_0.4642996673726154"},"_hasShrinkwrap":false,"publish_time":1625678586370,"_cnpm_publish_time":1625678586370},"1.2.3":{"name":"@types/range-parser","version":"1.2.3","description":"TypeScript definitions for range-parser","license":"MIT","contributors":[{"name":"Tomek Łaziuk","url":"https://github.com/tlaziuk","githubUsername":"tlaziuk"}],"main":"","types":"index","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"71bf3049d2d484657017f768fe0c54c4e9f03ee340b5a62a56523455925a00ae","typeScriptVersion":"2.0","_id":"@types/range-parser@1.2.3","dist":{"shasum":"7ee330ba7caafb98090bece86a5ee44115904c2c","size":1901,"noattachment":false,"key":"/@types/range-parser/-/@types/range-parser-1.2.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/range-parser/download/@types/range-parser-1.2.3.tgz"},"maintainers":[{"name":"types","email":""}],"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/range-parser_1.2.3_1544210540146_0.6996875518641452"},"_hasShrinkwrap":false,"publish_time":1544210540247,"_cnpm_publish_time":1544210540247},"1.2.2":{"name":"@types/range-parser","version":"1.2.2","description":"TypeScript definitions for range-parser","license":"MIT","contributors":[{"name":"Tomek Łaziuk","url":"https://github.com/tlaziuk","githubUsername":"tlaziuk"}],"main":"","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"9aa07423616e63016ffbf0e487540e74ec37bb06827861d502a5a3653e8831e9","typeScriptVersion":"2.0","_id":"@types/range-parser@1.2.2","dist":{"shasum":"fa8e1ad1d474688a757140c91de6dace6f4abc8d","size":1886,"noattachment":false,"key":"/@types/range-parser/-/@types/range-parser-1.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/range-parser/download/@types/range-parser-1.2.2.tgz"},"maintainers":[{"name":"types","email":""}],"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/range-parser_1.2.2_1528157125632_0.19075074453775498"},"_hasShrinkwrap":false,"publish_time":1528157125693,"_cnpm_publish_time":1528157125693},"1.2.1":{"name":"@types/range-parser","version":"1.2.1","description":"TypeScript definitions for range-parser","license":"MIT","contributors":[{"name":"Tomek Łaziuk","url":"https://github.com/tlaziuk"}],"main":"","repository":{"type":"git","url":"https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"},"scripts":{},"dependencies":{},"peerDependencies":{},"typesPublisherContentHash":"03972cff5d6102c2b5e14224a112cb83a99fd55ccbf831c6ba9953809199f9a8","typeScriptVersion":"2.0","_id":"@types/range-parser@1.2.1","dist":{"shasum":"d5ea5a43288953f7ae0ff4fdca7beee55e1efb1e","size":949,"noattachment":false,"key":"/@types/range-parser/-/@types/range-parser-1.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/range-parser/download/@types/range-parser-1.2.1.tgz"},"maintainers":[{"name":"types","email":""}],"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/range-parser-1.2.1.tgz_1490983644025_0.13351211254484951"},"directories":{},"publish_time":1490983645837,"_cnpm_publish_time":1490983645837,"_hasShrinkwrap":false},"1.2.0":{"name":"@types/range-parser","version":"1.2.0","description":"TypeScript definitions for range-parser","license":"MIT","author":"Tomek Łaziuk <https://github.com/tlaziuk>","main":"","repository":{"type":"git","url":"https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"},"scripts":{},"dependencies":{},"peerDependencies":{},"typesPublisherContentHash":"ef6c0b6cc4719620c4c92a0ce00d45a9b4f0b5e1d6d91245fc80e32d9886f21d","typeScriptVersion":"2.0","_id":"@types/range-parser@1.2.0","dist":{"shasum":"9de85d972f138909c0f71205157bb707908df088","size":1146,"noattachment":false,"key":"/@types/range-parser/-/@types/range-parser-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/range-parser/download/@types/range-parser-1.2.0.tgz"},"maintainers":[{"name":"types","email":""}],"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/range-parser-1.2.0.tgz_1486765496963_0.6287025790661573"},"directories":{},"publish_time":1486765498914,"_cnpm_publish_time":1486765498914,"_hasShrinkwrap":false}},"readme":"# Installation\r\n> `npm install --save @types/range-parser`\r\n\r\n# Summary\r\nThis package contains type definitions for range-parser (https://github.com/jshttp/range-parser).\r\n\r\n# Details\r\nFiles were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/range-parser.\r\n## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/range-parser/index.d.ts)\r\n````ts\r\n/**\n * When ranges are returned, the array has a \"type\" property which is the type of\n * range that is required (most commonly, \"bytes\"). Each array element is an object\n * with a \"start\" and \"end\" property for the portion of the range.\n *\n * @returns `-1` when unsatisfiable and `-2` when syntactically invalid, ranges otherwise.\n */\ndeclare function RangeParser(\n    size: number,\n    str: string,\n    options?: RangeParser.Options,\n): RangeParser.Result | RangeParser.Ranges;\n\ndeclare namespace RangeParser {\n    interface Ranges extends Array<Range> {\n        type: string;\n    }\n    interface Range {\n        start: number;\n        end: number;\n    }\n    interface Options {\n        /**\n         * The \"combine\" option can be set to `true` and overlapping & adjacent ranges\n         * will be combined into a single range.\n         */\n        combine?: boolean | undefined;\n    }\n    type ResultUnsatisfiable = -1;\n    type ResultInvalid = -2;\n    type Result = ResultUnsatisfiable | ResultInvalid;\n}\n\nexport = RangeParser;\n\r\n````\r\n\r\n### Additional Details\r\n * Last updated: Tue, 07 Nov 2023 09:09:39 GMT\r\n * Dependencies: none\r\n\r\n# Credits\r\nThese definitions were written by [Tomek Łaziuk](https://github.com/tlaziuk).\r\n","_attachments":{},"homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/range-parser","license":"MIT"}