{"name":"thread-sleep","version":"0.0.1","description":"A native module for when you just need node to back off for a few milliseconds","keywords":[],"main":"index.js","gypfile":true,"dependencies":{"nan":"^1.5.0","node-pre-gyp":"^0.6.1"},"devDependencies":{},"scripts":{"test":"node test","install":"node-pre-gyp install --fallback-to-build"},"binary":{"module_name":"thread_sleep","module_path":"./lib/binding/{configuration}/{node_abi}-{platform}-{arch}/","remote_path":"./{module_name}/v{version}/{configuration}/","package_name":"{module_name}-v{version}-{node_abi}-{platform}-{arch}.tar.gz","host":"https://node-pre-gyp-forbeslindesay.s3-website-us-east-1.amazonaws.com"},"repository":{"type":"git","url":"https://github.com/ForbesLindesay/thread-sleep.git"},"author":{"name":"ForbesLindesay"},"license":"MIT","gitHead":"dca41812462b7df14aaf452174f9f2bafba46145","bugs":{"url":"https://github.com/ForbesLindesay/thread-sleep/issues"},"homepage":"https://github.com/ForbesLindesay/thread-sleep","bundleDependencies":["node-pre-gyp"],"_id":"thread-sleep@0.0.1","_shasum":"36e207680861f51318f3d933958dfdc9534ed0e0","_from":".","_npmVersion":"2.4.1","_nodeVersion":"0.10.28","_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"}],"dist":{"shasum":"36e207680861f51318f3d933958dfdc9534ed0e0","tarball":"http://registry-npm.ywwl.com/thread-sleep/download/thread-sleep-0.0.1.tgz","integrity":"sha512-fQLM8ZmY/oEzOfJkeqSiZxsl98KKPm1exjT6gk9DO0QTK5K4dtwL2O+G9M6ExZMqbkD9oyB59rJoT9HUf7k6uA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFww9biuiA+ged0lkxXdVrBoCnaIxjGMq5tQm1qtAFTzAiAzC1JqTIjaeM8CJEs1z6RgMXhL+w55p2N7VgdEH/vKBQ=="}],"size":918372,"noattachment":false,"key":"/thread-sleep/-/thread-sleep-0.0.1.tgz"},"directories":{},"readme":"# thread-sleep\n\nA native module for when you just need node to back off for a few milliseconds.  It effectively pauses the current thread.  It may be woken early if an interupt is fired, so it should work pretty well for busy waiting scenarios where you want to check something every few hunderd milliseconds.\n\n[![Linux and Mac Build Status](https://img.shields.io/travis/ForbesLindesay/thread-sleep/master.svg?label=Linux%20%26%20Mac%20Build)](https://travis-ci.org/ForbesLindesay/thread-sleep)\n[![Windows Build Status](https://img.shields.io/appveyor/ci/ForbesLindesay/thread-sleep/master.svg?label=Windows%20Build)](https://ci.appveyor.com/project/ForbesLindesay/thread-sleep)\n[![Dependency Status](https://img.shields.io/david/ForbesLindesay/thread-sleep.svg)](https://david-dm.org/ForbesLindesay/thread-sleep)\n[![NPM version](https://img.shields.io/npm/v/thread-sleep.svg)](https://www.npmjs.org/package/thread-sleep)\n\n## Installation\n\n    npm install thread-sleep\n\nThis module uses node-pre-gyp so it should install even without a compiler in most environments.  If you run into any problems, please open an issue with the full npm log, and a description of what operating system you use.\n\n## Usage\n\n```js\nvar sleep = require('thread-sleep');\n\nvar start = Date.now();\nvar res = sleep(1000);\nvar end = Date.now();\n// res is the actual time that we slept for\nconsole.log(res + ' ~= ' + (end - start) + ' ~= 1000');\n// tested on osx and resulted in => 1005 ~= 1010 ~= 1000\n```\n\n## License\n\n  MIT\n","publish_time":1423129236897,"_cnpm_publish_time":1423129236897,"dist-tags":{"latest":"2.2.0"}}