{"name":"lie","version":"2.0.5","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"},"main":"lie.js","scripts":{"test":"grunt test"},"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","grunt-component":"~0.1.6","promises-aplus-tests":"~1.3.2"},"dependencies":{"immediate":"~2.4.3"},"contributors":[{"name":"Ruben Verborgh","email":"ruben.verborgh@gmail.com"},{"name":"Calvin Metcalf","email":"calvin.metcalf@gmail.com"}],"_id":"lie@2.0.5","dist":{"shasum":"80b8b5bb7d215311f5c18c402d62ec7feda73d04","tarball":"http://registry-npm.ywwl.com/lie/download/lie-2.0.5.tgz","integrity":"sha512-WOGz+ZHvln47nCimKKSy2wtDBpwAS6+RMsHlSDo+YCI6/+VxcUQhTb32MQyKP/OiWDtgsFAT+QG3wzDO8IPZuw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDjY+pcyTk5bnjdTZdweHSGmkA5OJiml5Q8lgSa9AOpsQIgUjbsWBU8sw/rwoLa9g58Wvq0775yUVLab8OW409SPr0="}],"size":10604,"noattachment":false,"key":"/lie/-/lie-2.0.5.tgz"},"_from":".","_npmVersion":"1.3.8","_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":1380628499760,"_cnpm_publish_time":1380628499760,"dist-tags":{"latest":"3.3.0"}}