The Utils component is a collection of helpers.
npm install @rxstack/utils --save
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}Licensed under the MIT license.