@promises/-constructor
TypeScript icon, indicating that this package has built-in type declarations

0.5.0 • Public • Published

@promises/-constructor

Source Code Version MIT License Bundle Size

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.

Package Sidebar

Install

npm i @promises/-constructor

Weekly Downloads

2

Version

0.5.0

License

MIT

Unpacked Size

433 kB

Total Files

39

Last publish

Collaborators

  • yisraelx