{"_id":"co-sleep","_rev":"1259015","name":"co-sleep","description":"setTimeout that works with the co generator framework","dist-tags":{"latest":"0.0.1"},"maintainers":[{"name":"eugeneware","email":"eugene@noblesamurai.com"}],"time":{"modified":"2021-10-15T06:41:59.000Z","created":"2014-01-02T08:04:50.924Z","0.0.1":"2014-01-02T08:04:50.924Z"},"users":{"brugnara":true},"author":{"name":"Eugene Ware","email":"eugene@noblesamurai.com"},"repository":{"type":"git","url":"https://github.com/eugeneware/co-sleep"},"versions":{"0.0.1":{"name":"co-sleep","version":"0.0.1","description":"setTimeout that works with the co generator framework","main":"index.js","scripts":{"test":"node_modules/.bin/mocha --harmony"},"repository":{"type":"git","url":"https://github.com/eugeneware/co-sleep"},"keywords":["co","setTimeout","sleep","wait"],"author":{"name":"Eugene Ware","email":"eugene@noblesamurai.com"},"license":"BSD-3-Clause","bugs":{"url":"https://github.com/eugeneware/co-sleep/issues"},"dependencies":{},"devDependencies":{"expect.js":"~0.2.0","co":"~3.0.1","mocha":"~1.16.2"},"readmeFilename":"README.md","homepage":"https://github.com/eugeneware/co-sleep","_id":"co-sleep@0.0.1","dist":{"shasum":"5ec6a9c77649eaf5c4e1116e62635668c608ee32","size":1940,"noattachment":false,"key":"/co-sleep/-/co-sleep-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/co-sleep/download/co-sleep-0.0.1.tgz"},"_from":".","_npmVersion":"1.3.15","_npmUser":{"name":"eugeneware","email":"eugene@noblesamurai.com"},"maintainers":[{"name":"eugeneware","email":"eugene@noblesamurai.com"}],"directories":{},"publish_time":1388649890924,"_hasShrinkwrap":false,"_cnpm_publish_time":1388649890924}},"readme":"# co-sleep\n\nsetTimeout that works with the [co](https://github.com/visionmedia/co)\ngenerator framework\n\n[![build status](https://secure.travis-ci.org/eugeneware/co-sleep.png)](http://travis-ci.org/eugeneware/co-sleep)\n\n## Installation\n\nThis module is installed via npm:\n\n``` bash\n$ npm install co-sleep\n```\n\n## Example Usage\n\n``` js\nvar sleep = require('co-sleep');\nvar co = require('co');\n\nco(function *() {\n  var now = Date.now();\n  // wait for 1000 ms\n  yield sleep(1000);\n  expect(Date.now() - now).to.not.be.below(1000);\n})();\n```\n","_attachments":{},"readmeFilename":"README.md","homepage":"https://github.com/eugeneware/co-sleep","bugs":{"url":"https://github.com/eugeneware/co-sleep/issues"},"license":"BSD-3-Clause"}