@promises/-constructor
Constructor is a group of packages of Promises library
Use
Module
$ npm install --save @promises/-constructor
import {
compose,
create,
delay,
doWhileParallel,
doWhileSeries,
exec,
forever,
fromCallback,
fromEvent,
isPromise,
promisify,
parallel,
retry,
series,
timeout,
timesParallel,
timesSeries,
whileParallel,
whileSeries,
wrap
} from '@promises/-constructor';
Browser
<script src="https://unpkg.com/@promises/-constructor/bundle.umd.min.js"></script>
let {
compose,
create,
delay,
doWhileParallel,
doWhileSeries,
exec,
forever,
fromCallback,
fromEvent,
isPromise,
promisify,
parallel,
retry,
series,
timeout,
timesParallel,
timesSeries,
whileParallel,
whileSeries,
wrap
} = P;
Functional programming
Module
$ npm install --save @promises/-constructor
import {
__,
timesParallel,
timesSeries
} from '@promises/-constructor/fp';
Browser
<script src="https://unpkg.com/@promises/-constructor/fp/bundle.umd.min.js"></script>
let {
__,
timesParallel,
timesSeries
} = PF;
Wrapper
Module
$ npm install --save @promises/-constructor
import Promises from '@promises/core';
import '@promises/-constructor/add';
Or
import Promises from '@promises/-constructor/add';
Browser
<script src="https://unpkg.com/@promises/core/bundle.umd.min.js"></script>
<script src="https://unpkg.com/@promises/-constructor/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.