0.1.0 • Published 8 years ago
awaiting-async v0.1.0
awaiting-async ·

About
awaiting-async is an async await precursor for promise based flow control sanity.
This library is designed to be lightweight (working only with promises) and well tested making it suitable for use in anger.
Usage
First, run:
yarn install awaiting-asyncor
npm install awaiting-asyncSample code shown below:
const aa = require('awaiting-async');
aa(function * () {
const result = yield Promise.resolve('Hello world!');
console.log(result); // Hello world!
});Simple! Enjoy.
(Tested and working against Node.js v6.x.x, testing against more platforms to come...)
Contributing
PR's more than welcome, please add/amend unit tests as appropriate to go with PR.
Build
Use latest Node.js version from 6.x.x branch (LTS), with Yarn installed (optional).
To install dependencies, run:
yarn installor
npm installTo test your changes, run:
yarn testor
npm testTo build the bundles, run:
yarn buildor
npm run build