0.5.0 • Published 6 years ago
@promises/-prototype v0.5.0
@promises/-prototype
Prototype is a group of packages of Promises library
Use
Module
$ npm install --save @promises/-prototype
import {
error,
everyParallel,
everySeries,
filterParallel,
filterSeries,
finally,
forEachParallel,
forEachRightSeries,
forEachSeries,
keys,
mapParallel,
mapSeries,
next,
reduceRightSeries,
reduceSeries,
rejectParallel,
rejectSeries,
reset,
sleep,
someParallel,
someSeries,
spread,
timer,
toCallback,
wait
} from '@promises/-prototype';
Browser
<script src="https://unpkg.com/@promises/-prototype/bundle.umd.min.js"></script>
let {
error,
everyParallel,
everySeries,
filterParallel,
filterSeries,
finally,
forEachParallel,
forEachRightSeries,
forEachSeries,
keys,
mapParallel,
mapSeries,
next,
reduceRightSeries,
reduceSeries,
rejectParallel,
rejectSeries,
reset,
sleep,
someParallel,
someSeries,
spread,
timer,
toCallback,
wait
} = P;
Functional programming
Module
$ npm install --save @promises/-prototype
import {
__,
error,
everyParallel,
everySeries,
filterParallel,
filterSeries,
finally,
forEachParallel,
forEachRightSeries,
forEachSeries,
mapParallel,
mapSeries,
next,
reduceRightSeries,
reduceSeries,
rejectParallel,
rejectSeries,
reset,
sleep,
someParallel,
someSeries,
toCallback,
wait
} from '@promises/-prototype/fp';
Browser
<script src="https://unpkg.com/@promises/-prototype/fp/bundle.umd.min.js"></script>
let {
__,
error,
everyParallel,
everySeries,
filterParallel,
filterSeries,
finally,
forEachParallel,
forEachRightSeries,
forEachSeries,
mapParallel,
mapSeries,
next,
reduceRightSeries,
reduceSeries,
rejectParallel,
rejectSeries,
reset,
sleep,
someParallel,
someSeries,
toCallback,
wait
} = PF;
Wrapper
Module
$ npm install --save @promises/-prototype
import Promises from '@promises/core';
import '@promises/-prototype/add';
Or
import Promises from '@promises/-prototype/add';
Browser
<script src="https://unpkg.com/@promises/core/bundle.umd.min.js"></script>
<script src="https://unpkg.com/@promises/-prototype/add/bundle.umd.min.js"></script>
let {
Promises
} = P;
Compatibility
These modules are written in typescript and available in ES5 and ES6 standard, the requirements are a global Promise (native or polyfill).
License
Copyright © 2017 Yisrael Eliav, Licensed under the MIT license.