{"name":"tiny-defer","version":"1.0.4","description":"Tiny Deferred for Client or Server","main":"lib/tiny-defer.js","scripts":{"test":"grunt test"},"repository":{"type":"git","url":"git+https://github.com/avoidwork/tiny-defer.git"},"keywords":["es6","unboxed","promise","deferred","defer"],"author":{"name":"Jason Mulligan","email":"jason.mulligan@avoidwork.com"},"license":"BSD-3-Clause","bugs":{"url":"https://github.com/avoidwork/tiny-defer/issues"},"homepage":"https://github.com/avoidwork/tiny-defer","devDependencies":{"babel-eslint":"^4.1.0","grunt":"^0.4.5","grunt-babel":"^5.0.0","grunt-cli":"^0.1.13","grunt-contrib-concat":"^0.5.1","grunt-contrib-uglify":"^0.9.1","grunt-contrib-watch":"^0.6.1","grunt-eslint":"^17.1.0"},"dependencies":{"es6-promise":"^3.0.2"},"gitHead":"baead4fd8125cb7c8443d1fab6be75914381455a","_id":"tiny-defer@1.0.4","_shasum":"5cd36cdad7111f8c99b24feca78a2e9bc13b71ce","_from":"tiny-defer","_resolved":"file:tiny-defer","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"avoidwork","email":"jason.mulligan@avoidwork.com"},"maintainers":[{"name":"avoidwork","email":"jason.mulligan@avoidwork.com"}],"dist":{"shasum":"5cd36cdad7111f8c99b24feca78a2e9bc13b71ce","tarball":"http://registry-npm.ywwl.com/tiny-defer/download/tiny-defer-1.0.4.tgz","integrity":"sha512-raMk08N5zd3ebxsW6Q3BBL05ygnKjT7Tbhp2GgjdF3J1UHdZw74CYHpGUdcnfvdFU1rTIMTKkJdi15wGRxWPLQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCxT6ca1S/uC8wJDCskc3Qdw8RrTYidXgy7DFOSYVX+GgIhAOvRrcesGdZvzoYSvXM9o3sOWcbRq5x9Nd9q/9rHVt3H"}],"size":4056,"noattachment":false,"key":"/tiny-defer/-/tiny-defer-1.0.4.tgz"},"directories":{},"readme":"# tiny-defer\nTiny Deferred for Client or Server\n\n[![build status](https://secure.travis-ci.org/avoidwork/tiny-defer.svg)](http://travis-ci.org/avoidwork/tiny-defer)\n\n## Example\n```javascript\nvar deferred = require('tiny-defer');\n\nfunction something () {\n  var defer = deferred();\n\n  setTimeout(function () {\n    defer.resolve(true);\n  }, 1000);\n  \n  return defer.promise;\n}\n\nsomething().then(function (arg) {\n  console.log(arg); // true;\n});\n```\n\n## API\n#### promise\n`Promise` to pass/return\n\n#### reject()\nRejects the `Promise`\n\n#### resolve()\nResolves the `Promise`\n\n## How to use tiny-defer\n`tiny-defer` can be loaded as a CommonJS or AMD module, or with a script tag which would create `window.deferred`.\n\n## License\nCopyright (c) 2015 Jason Mulligan\nLicensed under the BSD-3 license\n","publish_time":1445946092628,"_cnpm_publish_time":1445946092628,"dist-tags":{"latest":"2.0.2"}}