{"name":"lie","version":"3.0.4","description":"A basic but performant promise implementation","license":"MIT","repository":{"type":"git","url":"git+https://github.com/calvinmetcalf/lie.git"},"bugs":{"url":"https://github.com/calvinmetcalf/lie/issues"},"keywords":["lie","promise","async","aplus"],"main":"lib/index.js","scripts":{"test":"jshint lib/*.js && mocha -R nyan ./test/cover.js","build-js":"browserify -s Promise ./lib/index.js | derequire > ./dist/lie.js","build-min":"uglifyjs ./dist/lie.js -mc > ./dist/lie.min.js","build-poly-js":"browserify ./polyfill.js | derequire > ./dist/lie.polyfill.js","build-poly-min":"uglifyjs ./dist/lie.polyfill.js -mc > ./dist/lie.polyfill.min.js","build-poly":"npm run build-poly-js && npm run build-poly-min","build":"npm run build-js && npm run build-min && npm run build-poly","cover":"istanbul cover _mocha ./test/cover.js -- -R spec && istanbul check-coverage --lines 100 --function 100 --statements 100 --branches 100","jshint":"jshint lib/*.js","node":"mocha -R spec ./test/cover.js","browser":"browserify test/cover.js > test/browser.js && mocha-phantomjs test/test.html"},"devDependencies":{"browserify":"^11.0.0","derequire":"^1.2.0","istanbul":"^0.2.6","jshint":"^2.4.4","mocha":"^1.18.0","mocha-phantomjs":"~3.5.0","phantomjs":"^1.9.9","promises-aplus-tests":"github:calvinmetcalf/promises-tests#phantom","uglify-js":"^2.4.13"},"dependencies":{"es3ify":"^0.2.2","immediate":"~3.0.5","inline-process-browser":"^1.0.0","unreachable-branch-transform":"^0.3.0"},"browserify":{"transform":["inline-process-browser","unreachable-branch-transform","es3ify"]},"contributors":[{"name":"Ruben Verborgh","email":"ruben.verborgh@gmail.com"},{"name":"Calvin Metcalf","email":"calvin.metcalf@gmail.com"},{"name":"Sam Hocevar","email":"sam@hocevar.net"},{"name":"Christoph Burgmer"}],"gitHead":"3f83935216832bec47ede561ebde21a463321b35","homepage":"https://github.com/calvinmetcalf/lie#readme","_id":"lie@3.0.4","_shasum":"bc7ae1ebe7f1c8de39afdcd4f789076b47b0f634","_from":".","_npmVersion":"3.8.8","_nodeVersion":"5.5.0","_npmUser":{"name":"cwmma","email":"calvin.metcalf@gmail.com"},"dist":{"shasum":"bc7ae1ebe7f1c8de39afdcd4f789076b47b0f634","tarball":"http://registry-npm.ywwl.com/lie/download/lie-3.0.4.tgz","integrity":"sha512-i21Zz/APyOIeouLMMCvXPKxibClh0AmLLqnmPg51GAeDJgmkwKkyATdVEVejDsXi8n+vJLlu1GyE5V/pZi3uUA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD3dZLIE5hERcK6jpZQjcz2tCTTCTF0o4DFPUoTgZcEXQIgQmHz2TYgkdiDw24RY5qIfaQ/qv3YbYP9BwH0cBe5fm4="}],"size":9390,"noattachment":false,"key":"/lie/-/lie-3.0.4.tgz"},"maintainers":[{"name":"cwmma","email":"calvin.metcalf@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/lie-3.0.4.tgz_1462041534562_0.06119112460874021"},"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":1462041535511,"_cnpm_publish_time":1462041535511,"dist-tags":{"latest":"3.3.0"}}