A basic but performant promise implementation
lie a small, performant, promise library implementing the Promises/A+ spec Version 1.1.
npm install lie
var Promise = require'lie';
Either use it with browserify (recommended) or grab one of the files from the dist folder
Promisewill be availble through a CJS or AMD loader if it's available instead)
Implements the standard ES6 api,
doSomethingif errrejecterr;elseresolveresult;;then//on success//on errorcatch//shortcut for error handling;Promiseall//array of promises or valuesthen;Promiserace//array of promises or values;// either resolves or rejects depending on the first value to do so
In node lie emits
unhandledRejection events when promises are not handled in
line with how iojs does so
meaning it can act as promise shim in node as well as the browser.