mirror of
https://github.com/arnaucube/raspberryGPIOhtmlserver.git
synced 2026-02-08 12:16:42 +01:00
servidor funciona, gpio desabilitat
This commit is contained in:
28
node_modules/range-parser/Readme.md
generated
vendored
Executable file
28
node_modules/range-parser/Readme.md
generated
vendored
Executable file
@@ -0,0 +1,28 @@
|
||||
|
||||
# node-range-parser
|
||||
|
||||
Range header field parser.
|
||||
|
||||
## Example:
|
||||
|
||||
```js
|
||||
assert(-1 == parse(200, 'bytes=500-20'));
|
||||
assert(-2 == parse(200, 'bytes=malformed'));
|
||||
parse(200, 'bytes=0-499').should.eql(arr('bytes', [{ start: 0, end: 199 }]));
|
||||
parse(1000, 'bytes=0-499').should.eql(arr('bytes', [{ start: 0, end: 499 }]));
|
||||
parse(1000, 'bytes=40-80').should.eql(arr('bytes', [{ start: 40, end: 80 }]));
|
||||
parse(1000, 'bytes=-500').should.eql(arr('bytes', [{ start: 500, end: 999 }]));
|
||||
parse(1000, 'bytes=-400').should.eql(arr('bytes', [{ start: 600, end: 999 }]));
|
||||
parse(1000, 'bytes=500-').should.eql(arr('bytes', [{ start: 500, end: 999 }]));
|
||||
parse(1000, 'bytes=400-').should.eql(arr('bytes', [{ start: 400, end: 999 }]));
|
||||
parse(1000, 'bytes=0-0').should.eql(arr('bytes', [{ start: 0, end: 0 }]));
|
||||
parse(1000, 'bytes=-1').should.eql(arr('bytes', [{ start: 999, end: 999 }]));
|
||||
parse(1000, 'items=0-5').should.eql(arr('items', [{ start: 0, end: 5 }]));
|
||||
parse(1000, 'bytes=40-80,-1').should.eql(arr('bytes', [{ start: 40, end: 80 }, { start: 999, end: 999 }]));
|
||||
```
|
||||
|
||||
## Installation
|
||||
|
||||
```
|
||||
$ npm install range-parser
|
||||
```
|
||||
Reference in New Issue
Block a user