{"_id":"tiny-defer","_rev":"141341","name":"tiny-defer","description":"Tiny Deferred for Client or Server","dist-tags":{"latest":"2.0.2"},"maintainers":[{"name":"avoidwork","email":"jason.mulligan@avoidwork.com"}],"time":{"modified":"2021-06-03T11:27:09.000Z","created":"2015-08-30T23:19:41.267Z","2.0.2":"2016-09-25T22:56:55.770Z","2.0.1":"2016-09-21T11:11:45.337Z","2.0.0":"2016-09-21T11:04:59.272Z","1.0.4":"2015-10-27T11:41:32.628Z","1.0.3":"2015-10-26T11:07:37.412Z","1.0.2":"2015-08-30T23:38:00.728Z","1.0.1":"2015-08-30T23:28:19.950Z","1.0.0":"2015-08-30T23:19:41.267Z"},"users":{},"author":{"name":"Jason Mulligan","email":"jason.mulligan@avoidwork.com"},"repository":{"type":"git","url":"git+https://github.com/avoidwork/tiny-defer.git"},"versions":{"2.0.2":{"name":"tiny-defer","version":"2.0.2","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","engineStrict":true,"engines":{"node":">=4.0.0"},"devDependencies":{"babel-eslint":"^4.1.4","babel-preset-es2015":"^6.1.2","grunt":"^0.4.5","grunt-babel":"^6.0.0","grunt-cli":"^0.1.13","grunt-contrib-concat":"^0.5.1","grunt-contrib-nodeunit":"^1.0.0","grunt-contrib-uglify":"^0.9.1","grunt-contrib-watch":"^0.6.1","grunt-eslint":"^17.1.0"},"gitHead":"81bde81c44b8b237d63529b956a5069e3ad32008","_id":"tiny-defer@2.0.2","_shasum":"f983a63fb66033052f35107d3fb9b1109d29f795","_from":"tiny-defer","_resolved":"file:tiny-defer","_npmVersion":"3.10.3","_nodeVersion":"6.6.0","_npmUser":{"name":"avoidwork","email":"jason.mulligan@avoidwork.com"},"maintainers":[{"name":"avoidwork","email":"jason.mulligan@avoidwork.com"}],"dist":{"shasum":"f983a63fb66033052f35107d3fb9b1109d29f795","size":4082,"noattachment":false,"key":"/tiny-defer/-/tiny-defer-2.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/tiny-defer/download/tiny-defer-2.0.2.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/tiny-defer-2.0.2.tgz_1474844213732_0.6737026658374816"},"directories":{},"publish_time":1474844215770,"_cnpm_publish_time":1474844215770,"_hasShrinkwrap":false},"2.0.1":{"name":"tiny-defer","version":"2.0.1","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","engineStrict":true,"engines":{"node":">=4.0.0"},"devDependencies":{"babel-eslint":"^4.1.4","babel-preset-es2015":"^6.1.2","grunt":"^0.4.5","grunt-babel":"^6.0.0","grunt-cli":"^0.1.13","grunt-contrib-concat":"^0.5.1","grunt-contrib-nodeunit":"^1.0.0","grunt-contrib-uglify":"^0.9.1","grunt-contrib-watch":"^0.6.1","grunt-eslint":"^17.1.0"},"gitHead":"fd84ba5a9e7ddbbf355d6a64866385057e4dc9fe","_id":"tiny-defer@2.0.1","_shasum":"67605d965c42730dd045f1b02c70d0b1e27cf178","_from":"tiny-defer","_resolved":"file:tiny-defer","_npmVersion":"2.15.9","_nodeVersion":"4.5.0","_npmUser":{"name":"avoidwork","email":"jason.mulligan@avoidwork.com"},"maintainers":[{"name":"avoidwork","email":"jason.mulligan@avoidwork.com"}],"dist":{"shasum":"67605d965c42730dd045f1b02c70d0b1e27cf178","size":4092,"noattachment":false,"key":"/tiny-defer/-/tiny-defer-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/tiny-defer/download/tiny-defer-2.0.1.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/tiny-defer-2.0.1.tgz_1474456302898_0.5403083353303373"},"directories":{},"publish_time":1474456305337,"_cnpm_publish_time":1474456305337,"_hasShrinkwrap":false},"2.0.0":{"name":"tiny-defer","version":"2.0.0","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","engineStrict":true,"engines":{"node":">=4.0.0"},"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-nodeunit":"^1.0.0","grunt-contrib-uglify":"^0.9.1","grunt-contrib-watch":"^0.6.1","grunt-eslint":"^17.1.0"},"gitHead":"234f2c7d060e89529ee04ceffd666d770ec9c78d","_id":"tiny-defer@2.0.0","_shasum":"2e5ad5be6d73444f11383c6f1eb81e1bd76ed7a5","_from":"tiny-defer","_resolved":"file:tiny-defer","_npmVersion":"2.15.9","_nodeVersion":"4.5.0","_npmUser":{"name":"avoidwork","email":"jason.mulligan@avoidwork.com"},"maintainers":[{"name":"avoidwork","email":"jason.mulligan@avoidwork.com"}],"dist":{"shasum":"2e5ad5be6d73444f11383c6f1eb81e1bd76ed7a5","size":4071,"noattachment":false,"key":"/tiny-defer/-/tiny-defer-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/tiny-defer/download/tiny-defer-2.0.0.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/tiny-defer-2.0.0.tgz_1474455896889_0.36026626895181835"},"directories":{},"publish_time":1474455899272,"_cnpm_publish_time":1474455899272,"_hasShrinkwrap":false},"1.0.4":{"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","size":4056,"noattachment":false,"key":"/tiny-defer/-/tiny-defer-1.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/tiny-defer/download/tiny-defer-1.0.4.tgz"},"directories":{},"publish_time":1445946092628,"_cnpm_publish_time":1445946092628,"_hasShrinkwrap":false},"1.0.3":{"name":"tiny-defer","version":"1.0.3","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":"690f16e56d3a52b9aa32a972c0dff43162190146","_id":"tiny-defer@1.0.3","_shasum":"7dd3181bc898f76996705d502a666431a6b24a94","_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":"7dd3181bc898f76996705d502a666431a6b24a94","size":3917,"noattachment":false,"key":"/tiny-defer/-/tiny-defer-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/tiny-defer/download/tiny-defer-1.0.3.tgz"},"directories":{},"publish_time":1445857657412,"_cnpm_publish_time":1445857657412,"_hasShrinkwrap":false},"1.0.2":{"name":"tiny-defer","version":"1.0.2","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":"83e5d435df05446ab6fc72f2862a1a9799f27ca4","_id":"tiny-defer@1.0.2","_shasum":"b85e6256a5ad6b0a032bebe15273a73ac0417474","_from":"tiny-defer","_resolved":"file:tiny-defer","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"avoidwork","email":"jason.mulligan@avoidwork.com"},"maintainers":[{"name":"avoidwork","email":"jason.mulligan@avoidwork.com"}],"dist":{"shasum":"b85e6256a5ad6b0a032bebe15273a73ac0417474","size":3950,"noattachment":false,"key":"/tiny-defer/-/tiny-defer-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/tiny-defer/download/tiny-defer-1.0.2.tgz"},"directories":{},"publish_time":1440977880728,"_cnpm_publish_time":1440977880728,"_hasShrinkwrap":false},"1.0.1":{"name":"tiny-defer","version":"1.0.1","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":"121153bbed35e90e4082152b25d1f7b677e62dce","_id":"tiny-defer@1.0.1","_shasum":"eea562d257436442820b67c2770fed406c524d8c","_from":"tiny-defer","_resolved":"file:tiny-defer","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"avoidwork","email":"jason.mulligan@avoidwork.com"},"maintainers":[{"name":"avoidwork","email":"jason.mulligan@avoidwork.com"}],"dist":{"shasum":"eea562d257436442820b67c2770fed406c524d8c","size":3920,"noattachment":false,"key":"/tiny-defer/-/tiny-defer-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/tiny-defer/download/tiny-defer-1.0.1.tgz"},"directories":{},"publish_time":1440977299950,"_cnpm_publish_time":1440977299950,"_hasShrinkwrap":false},"1.0.0":{"name":"tiny-defer","version":"1.0.0","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":"3fe398c6bb99a2dc3348bfe53c205bd21f9f27a3","_id":"tiny-defer@1.0.0","_shasum":"3c8caa7ab13a53039d091190d212d40192e2d0ba","_from":"tiny-defer","_resolved":"file:tiny-defer","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"avoidwork","email":"jason.mulligan@avoidwork.com"},"maintainers":[{"name":"avoidwork","email":"jason.mulligan@avoidwork.com"}],"dist":{"shasum":"3c8caa7ab13a53039d091190d212d40192e2d0ba","size":3881,"noattachment":false,"key":"/tiny-defer/-/tiny-defer-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/tiny-defer/download/tiny-defer-1.0.0.tgz"},"directories":{},"publish_time":1440976781267,"_cnpm_publish_time":1440976781267,"_hasShrinkwrap":false}},"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","_attachments":{},"homepage":"https://github.com/avoidwork/tiny-defer","bugs":{"url":"https://github.com/avoidwork/tiny-defer/issues"},"license":"BSD-3-Clause"}