{"_id":"timerjs","_rev":"5-3555fa645853940062c5a22ef7dca0dd","name":"timerjs","description":"Give a timer to your callbacks","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"timerjs","version":"0.0.1","description":"Give a timer to your callbacks","keywords":"callback, timer, timeout","readme":"TimerJS\n=========\n\nTimerJS lets you give a timeout to your callback.\n\nIn some cases, a callback may be called only after inner callbacks resolutions, when you are using async.each() for instance.\nI found it would be clever to be able to give a timeout to the inner callbacks in order to ensure your script will not run\n\"forever\" if a inner callback takes too much time to be called.\n\nTimerJS works in the browser and in NodeJS.\n\nAll you have to do is include the script, and then\n\n````javascript\nasyncFunction(arg, timer(callback, 100));\n````\nThe callback will be called after 100 milliseconds, if it have been not called yet.\n\nTo use in browser environement \n````javascript\n<script type='javascript' src='timerJS.js' />\n````\nIn nodeJS \n\nInstallation\n\n````javascript\nnpm install timerJS\n````\n\nThen \n````javascript\nvar timer = require('timerJS');\n````\n","readmeFilename":"README.md","_id":"timerjs@0.0.1","dist":{"shasum":"068a56b21d7dfcb841cb23512c1414ab25d3597a","tarball":"https://registry.npmjs.org/timerjs/-/timerjs-0.0.1.tgz","integrity":"sha512-lUEvx7FfpMzgABBd8JvBdGTFtR7521bYNImaBico8qekd7mpdGOiM3na0w0yldoANER8IuP4Kbi0aKZ1kbm7Uw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAxQrTQ9Aiz1GvmSD595hAWCHOoKsNnqV1zwCT2uReDvAiAhnkb+1V/lEN8aKmkyI5nVk05a6AfSVzoftac7URvk/w=="}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"flocks","email":"teissierflorent@gmail.com"},"maintainers":[{"name":"flocks","email":"teissierflorent@gmail.com"}]}},"readme":"TimerJS\n=========\n\nTimerJS lets you give a timeout to your callback.\n\nIn some cases, a callback may be called only after inner callbacks resolutions, when you are using async.each() for instance.\nI found it would be clever to be able to give a timeout to the inner callbacks in order to ensure your script will not run\n\"forever\" if a inner callback takes too much time to be called.\n\nTimerJS works in the browser and in NodeJS.\n\nAll you have to do is include the script, and then\n\n````javascript\nasyncFunction(arg, timer(callback, 100));\n````\nThe callback will be called after 100 milliseconds, if it have been not called yet.\n\nTo use in browser environement \n````javascript\n<script type='javascript' src='timerJS.js' />\n````\nIn nodeJS \n\nInstallation\n\n````javascript\nnpm install timerJS\n````\n\nThen \n````javascript\nvar timer = require('timerJS');\n````\n","maintainers":[{"name":"flocks","email":"teissierflorent@gmail.com"}],"time":{"modified":"2022-06-27T06:50:09.591Z","created":"2013-09-09T20:11:51.356Z","0.0.1":"2013-09-09T20:12:01.816Z"}}