{"_id":"try-thread-sleep","_rev":"34577","name":"try-thread-sleep","description":"Use thread-sleep if native compilation succeeded, otherwise it's a noop","dist-tags":{"latest":"2.0.0"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"}],"time":{"modified":"2021-06-03T10:07:15.000Z","created":"2015-01-15T05:48:12.586Z","2.0.0":"2018-05-10T14:03:36.841Z","1.0.2":"2017-02-26T16:42:57.633Z","1.0.1":"2017-02-26T16:41:45.142Z","1.0.0":"2015-01-15T05:48:12.586Z"},"users":{"koulmomo":true},"author":{"name":"ForbesLindesay"},"repository":{"type":"git","url":"git+https://github.com/ForbesLindesay/try-thread-sleep.git"},"versions":{"2.0.0":{"name":"try-thread-sleep","version":"2.0.0","description":"Use thread-sleep if native compilation succeeded, otherwise it's a noop","keywords":[],"dependencies":{"thread-sleep":"^2.0.0"},"optionalDependencies":{"thread-sleep":"^2.0.0"},"devDependencies":{"thread-sleep":"^2.0.0"},"scripts":{},"repository":{"type":"git","url":"git+https://github.com/ForbesLindesay/try-thread-sleep.git"},"author":{"name":"ForbesLindesay"},"license":"MIT","gitHead":"509cfca5645f93d5767151168847dc3816209fd7","bugs":{"url":"https://github.com/ForbesLindesay/try-thread-sleep/issues"},"homepage":"https://github.com/ForbesLindesay/try-thread-sleep#readme","_id":"try-thread-sleep@2.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.10.0","_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"dist":{"shasum":"ed0d7c5586c3b39021be570d490d20a00dc90179","size":1625,"noattachment":false,"key":"/try-thread-sleep/-/try-thread-sleep-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/try-thread-sleep/download/try-thread-sleep-2.0.0.tgz"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/try-thread-sleep_2.0.0_1525961016770_0.24088043500809886"},"_hasShrinkwrap":false,"publish_time":1525961016841,"_cnpm_publish_time":1525961016841},"1.0.2":{"name":"try-thread-sleep","version":"1.0.2","description":"Use thread-sleep if native compilation succeeded, otherwise it's a noop","keywords":[],"dependencies":{"thread-sleep":"^1.0.4"},"optionalDependencies":{"thread-sleep":"^1.0.4"},"devDependencies":{"thread-sleep":"^1.0.4"},"scripts":{},"repository":{"type":"git","url":"git+https://github.com/ForbesLindesay/try-thread-sleep.git"},"author":{"name":"ForbesLindesay"},"license":"MIT","gitHead":"a90bfc94b4bd06c6c423b0981b9391082c70992e","bugs":{"url":"https://github.com/ForbesLindesay/try-thread-sleep/issues"},"homepage":"https://github.com/ForbesLindesay/try-thread-sleep#readme","_id":"try-thread-sleep@1.0.2","_shasum":"c1e09326be83ae9b1613d41f5303f0ea778ae855","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.4.0","_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"}],"dist":{"shasum":"c1e09326be83ae9b1613d41f5303f0ea778ae855","size":1728,"noattachment":false,"key":"/try-thread-sleep/-/try-thread-sleep-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/try-thread-sleep/download/try-thread-sleep-1.0.2.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/try-thread-sleep-1.0.2.tgz_1488127375474_0.6801627960521728"},"directories":{},"publish_time":1488127377633,"_cnpm_publish_time":1488127377633,"_hasShrinkwrap":false},"1.0.1":{"name":"try-thread-sleep","version":"1.0.1","description":"Use thread-sleep if native compilation succeeded, otherwise it's a noop","keywords":[],"dependencies":{"thread-sleep":"*"},"optionalDependencies":{"thread-sleep":"*"},"devDependencies":{"thread-sleep":"*"},"scripts":{},"repository":{"type":"git","url":"git+https://github.com/ForbesLindesay/try-thread-sleep.git"},"author":{"name":"ForbesLindesay"},"license":"MIT","gitHead":"dc3ebe0da35ac6138b24a87d0cc878e71fd56e5b","bugs":{"url":"https://github.com/ForbesLindesay/try-thread-sleep/issues"},"homepage":"https://github.com/ForbesLindesay/try-thread-sleep#readme","_id":"try-thread-sleep@1.0.1","_shasum":"e9baac72de08a9ee14ddcc1042e981045ecafc20","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.4.0","_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"}],"dist":{"shasum":"e9baac72de08a9ee14ddcc1042e981045ecafc20","size":1726,"noattachment":false,"key":"/try-thread-sleep/-/try-thread-sleep-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/try-thread-sleep/download/try-thread-sleep-1.0.1.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/try-thread-sleep-1.0.1.tgz_1488127303088_0.8529641788918525"},"directories":{},"publish_time":1488127305142,"_cnpm_publish_time":1488127305142,"_hasShrinkwrap":false},"1.0.0":{"name":"try-thread-sleep","version":"1.0.0","description":"Use thread-sleep if native compilation succeeded, otherwise it's a noop","keywords":[],"dependencies":{"thread-sleep":"*"},"optionalDependencies":{"thread-sleep":"*"},"devDependencies":{"thread-sleep":"*"},"scripts":{},"repository":{"type":"git","url":"https://github.com/ForbesLindesay/try-thread-sleep.git"},"author":{"name":"ForbesLindesay"},"license":"MIT","gitHead":"cf437ae062e39db27e7d74abe0c50536ed60c46b","bugs":{"url":"https://github.com/ForbesLindesay/try-thread-sleep/issues"},"homepage":"https://github.com/ForbesLindesay/try-thread-sleep","_id":"try-thread-sleep@1.0.0","_shasum":"68fa1e1fee02fdc2f0c1a2cb3c7bfc981f7c09c0","_from":".","_npmVersion":"1.5.0-alpha-4","_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"}],"dist":{"shasum":"68fa1e1fee02fdc2f0c1a2cb3c7bfc981f7c09c0","size":1719,"noattachment":false,"key":"/try-thread-sleep/-/try-thread-sleep-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/try-thread-sleep/download/try-thread-sleep-1.0.0.tgz"},"directories":{},"publish_time":1421300892586,"_cnpm_publish_time":1421300892586,"_hasShrinkwrap":false}},"readme":"# try-thread-sleep\n\nUse thread-sleep if native compilation succeeded, otherwise it's a noop\n\n[![Build Status](https://img.shields.io/travis/ForbesLindesay/try-thread-sleep/master.svg)](https://travis-ci.org/ForbesLindesay/try-thread-sleep)\n[![Dependency Status](https://img.shields.io/david/ForbesLindesay/try-thread-sleep.svg)](https://david-dm.org/ForbesLindesay/try-thread-sleep)\n[![NPM version](https://img.shields.io/npm/v/try-thread-sleep.svg)](https://www.npmjs.org/package/try-thread-sleep)\n\n## Installation\n\n    npm install try-thread-sleep\n\n## Usage\n\n```js\nvar sleep = require('try-thread-sleep');\n\nif (!sleep.native) {\n  console.warn('native thread-sleep was not available');\n}\n\n// this next line will take roughly 1 second if native compilation succeeded,\n// otherwise it will be almost instant.\nsleep(1000);\n```\n\n## License\n\n  MIT\n","_attachments":{},"homepage":"https://github.com/ForbesLindesay/try-thread-sleep#readme","bugs":{"url":"https://github.com/ForbesLindesay/try-thread-sleep/issues"},"license":"MIT"}