Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
src
test
README.md
index.ts
mocha.opts
package-lock.json
package.json
tsconfig.json

README.md

The RxStack Utils

The Utils component is a collection of helpers.

Installation

npm install @rxstack/utils --save

Documentation

Parse range

Parse the given header string where size is the maximum size of the resource.

import {parseRange} from '@rxstack/utils'

parseRange('bytes=0-1023', 10000); 
// output {'start': 0, 'end': 1023, 'chunkSize': 1024}

License

Licensed under the MIT license.

You can’t perform that action at this time.