{"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","tarball":"http://registry-npm.ywwl.com/tiny-defer/download/tiny-defer-1.0.3.tgz","integrity":"sha512-ofB+d35JGAs/eUp6i8tfqF2NZep5KmcJkyFi/qMLWohDC110LQ6/b8QMwaLQ79aAkZb8CGZjQ6D1tgORhcVIqg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEzErmXRbOm2SKqtp3CGlOAhGYRuK1MBdOFBMtSci9KKAiBh3t9+M6P1tbVGAIdEPUlnDIgSy4kzaysSE0WbxSCDrA=="}],"size":3917,"noattachment":false,"key":"/tiny-defer/-/tiny-defer-1.0.3.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":1445857657412,"_cnpm_publish_time":1445857657412,"dist-tags":{"latest":"2.0.2"}}