Package Exports
- spex
- spex/src/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (spex) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
SPEX
Specialized Promise Extensions.
batch, page, sequence - promise methods for the following patterns:
- Data Throttling & Load Balancing
- Linked and Detached Sequencing
- Streaming and Paging
- Batch Processing
Installing
$ npm i spexUsage
import {batch, errors} from 'spex';
await batch([1, 2, 3])
.catch((err: errors.BatchError) => {
});See also: client-side usage.
API
Testing
- Clone the repository (or download, if you prefer):
$ git clone https://github.com/vitaly-t/spex- Install the library's DEV dependencies:
$ npm install- To run all tests:
$ npm test- To run all tests with coverage:
$ npm run coverageLicense
Copyright © 2025 Vitaly Tomilov; Released under the MIT license.