{"name":"lie","version":"0.6.2","description":"A minimal and fast promise/deferred implementation","license":"MIT","repository":{"type":"git","url":"https://github.com/calvinmetcalf/lie.git"},"bugs":{"url":"https://github.com/calvinmetcalf/lie/issues"},"main":"dist/lie.js","scripts":{"test":"promises-aplus-tests test/adapter"},"devDependencies":{"promises-aplus-tests":"*","grunt-contrib-concat":"~0.3.0","grunt":"~0.4.1","grunt-contrib-jshint":"~0.6.3","grunt-contrib-uglify":"~0.2.2","setimmediate":"~1.0.1"},"contributors":[{"name":"Ruben Verborgh","email":"ruben.verborgh@gmail.com"},{"name":"Calvin Metcalf","email":"calvin.metcalf@gmail.com"}],"_id":"lie@0.6.2","dist":{"shasum":"1d82f602487d230b50e1a7aa4eda1e21a42b7cad","tarball":"http://registry-npm.ywwl.com/lie/download/lie-0.6.2.tgz","integrity":"sha512-UWShrx+aTEeBf+9zxvKgz9dcSl5RTfL9PTOSq4p6T7vQe7rOA6YDZCaSwVgY/LFkMZmlrCv96Sa6ss+2ma74LA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHLLcdCbXV+BJAOf/bRdKYaP5vXHid+mL90P/c0fHC1CAiBrYCf/PJstcgrxpcFRwSePYm+itPrhDpv8HxIku2OEhA=="}],"size":8175,"noattachment":false,"key":"/lie/-/lie-0.6.2.tgz"},"_from":".","_npmVersion":"1.3.5","_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":1376757884008,"_cnpm_publish_time":1376757884008,"dist-tags":{"latest":"3.3.0"}}