{"name":"lie","version":"2.5.3","description":"A minimal and fast promise implementation","license":"MIT","repository":{"type":"git","url":"https://github.com/calvinmetcalf/lie.git"},"bugs":{"url":"https://github.com/calvinmetcalf/lie/issues"},"keywords":["lie","promise","async"],"main":"lib/lie.js","scripts":{"test":"./node_modules/istanbul/lib/cli.js test ./node_modules/promises-aplus-tests/lib/cli.js ./test/cover.js"},"jam":{"main":"dist/lie.js","include":["README.md","LICENSE.txt","dist/lie.js"]},"devDependencies":{"grunt":"~0.4.1","grunt-contrib-jshint":"~0.6.3","grunt-contrib-uglify":"~0.2.2","promises-aplus-tests":"~1.3.2","browserify":"~2.35.0","grunt-browserify":"~1.2.9","istanbul":"~0.1.44"},"dependencies":{"immediate":"~2.6.1"},"contributors":[{"name":"Ruben Verborgh","email":"ruben.verborgh@gmail.com"},{"name":"Calvin Metcalf","email":"calvin.metcalf@gmail.com"}],"homepage":"https://github.com/calvinmetcalf/lie","_id":"lie@2.5.3","dist":{"shasum":"c423cc28a28a08ffb49473a3c1cf5dc0d7be524d","tarball":"http://registry-npm.ywwl.com/lie/download/lie-2.5.3.tgz","integrity":"sha512-BGICqzg2c4IPtvQInPnGD1b7sUBqWkqe4nZe2LZyH2o0zBSZabreIXuSaP33sHk4vJd0QuQTUWTyWi5dgV12Uw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDmBaXgLbwW0j4G0oORSq66cnRafs7vHHuV9V6h0qRZaAiANC6odGn6DZYs8ni/CyfX7yVppiDmiS6kPlMHwDGd9+g=="}],"size":9882,"noattachment":false,"key":"/lie/-/lie-2.5.3.tgz"},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"cwmma","email":"calvin.metcalf@gmail.com"},"maintainers":[{"name":"cwmma","email":"calvin.metcalf@gmail.com"}],"directories":{},"readme":"# lie\n<a href=\"http://promises-aplus.github.com/promises-spec\">\n  <img src=\"http://promises-aplus.github.com/promises-spec/assets/logo-small.png\"\n       alt=\"Promises/A+ logo\" title=\"Promises/A+ 1.1 compliant\" align=\"right\" />\n</a> [![Build Status](https://travis-ci.org/calvinmetcalf/lie.svg)](https://travis-ci.org/calvinmetcalf/lie)\n\nlie is a small, performant promise library implementing the [Promises/A+ spec](http://promises-aplus.github.com/promises-spec/) (Version 1.1).\n\nOriginally a fork of [Ruben Verborgh](https://github.com/RubenVerborgh)'s [promiscuous](https://github.com/RubenVerborgh/promiscuous), with version 2.6 it became a fork of [ayepromise](https://github.com/cburgmer/ayepromise) by [Chris Burgmer](https://github.com/cburgmer).\n\n```bash\nnpm install lie\n\n```\n\n```javascript\nvar Promise = require('lie');\n// or use the pollyfill\nrequire('lie/polyfill');\n```\n\n## Usage\n\nEither use it with [browserify](http://browserify.org/) (recommended) or grab one of the files from the dist folder:\n\n- lie.js/lie.min.js exposes 'Promise' either as a UMD module or from the global scope, depending on if a CJS or AMD loader is available.\n- lie.polyfill.js/lie.polyfill.min.js adds 'Promise' to the global scope only if it's not already defined (not a UMD).\n\n## API\n\nImplements the standard ES6 api:\n\n```js\nnew Promise(function(resolve, reject){\n    doSomething(function(err, result) {\n        if (err) {\n            reject(err);\n        } else {\n            resolve(result);\n        }\n    });\n}).then(function (value) {\n    //on success\n}, function (reason) {\n    //on error\n}).catch(function (reason) {\n    //shortcut for error handling\n});\n\nPromise.all([\n    //array of promises or values\n]).then(function ([/* array of results */]));\n\nPromise.race([\n    //array of promises or values\n]);\n// either resolves or rejects depending on the first value to do so\n```\n\n## Unhandled Rejections\n\nIn Node.js, lie emits an `unhandledRejection` event when a rejected promise isn't caught, in line with [how io.js does it](https://iojs.org/api/process.html#process_event_unhandledrejection). This allows it to act as a promise shim in both Node.js and the browser.\n","publish_time":1391109812796,"_cnpm_publish_time":1391109812796,"dist-tags":{"latest":"3.3.0"}}