{"_id":"timers","_rev":"189326","name":"timers","description":"A tiny cron-like tools for humman.","dist-tags":{"latest":"0.1.1"},"maintainers":[{"name":"popomore","email":""}],"time":{"modified":"2023-03-20T07:16:50.000Z","created":"2013-12-02T05:42:17.656Z","0.1.1":"2014-05-18T15:39:14.808Z","0.1.0":"2013-12-02T15:14:31.264Z","0.0.0":"2013-12-02T05:42:17.656Z"},"users":{},"author":{"name":"popomore","email":"sakura9515@gmail.com"},"repository":{"type":"git","url":"git@github.com:popomore/timers.git"},"versions":{"0.1.1":{"name":"timers","version":"0.1.1","description":"A tiny cron-like tools for humman.","main":"index.js","devDependencies":{"mocha":"~1.8.1","should":"~1.1.0","mocha-lcov-reporter":"~0.0.1","sinon":"*","coveralls":"~2.0.7","blanket":"~1.1.4"},"repository":{"type":"git","url":"git@github.com:popomore/timers.git"},"author":{"name":"popomore","email":"sakura9515@gmail.com"},"license":"MIT","scripts":{"test":"make test"},"bugs":{"url":"https://github.com/popomore/timers/issues"},"homepage":"https://github.com/popomore/timers","_id":"timers@0.1.1","dist":{"shasum":"86ac5c78c1ee419694f35a58de4fd4183cfb9c1e","size":1927,"noattachment":false,"key":"/timers/-/timers-0.1.1.tgz","tarball":"http://name.csiicloud.com:7001/timers/download/timers-0.1.1.tgz"},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"popomore","email":"sakura9515@gmail.com"},"maintainers":[{"name":"popomore","email":""}],"directories":{},"publish_time":1400427554808,"_hasShrinkwrap":false,"_cnpm_publish_time":1400427554808,"_cnpmcore_publish_time":"2021-12-16T14:55:18.589Z"},"0.1.0":{"name":"timers","version":"0.1.0","description":"A tiny cron-like tools for humman.","main":"index.js","devDependencies":{"mocha":"~1.8.1","should":"~1.1.0","mocha-lcov-reporter":"~0.0.1","sinon":"*","coveralls":"~2.0.7","blanket":"~1.1.4"},"repository":{"type":"git","url":"git@github.com:popomore/timers.git"},"author":{"name":"popomore","email":"sakura9515@gmail.com"},"license":"MIT","scripts":{"test":"make test"},"readmeFilename":"README.md","bugs":{"url":"https://github.com/popomore/timers/issues"},"_id":"timers@0.1.0","dist":{"shasum":"3691eb13d1fdf0317a589fde1ddd77d2c49120b4","size":1898,"noattachment":false,"key":"/timers/-/timers-0.1.0.tgz","tarball":"http://name.csiicloud.com:7001/timers/download/timers-0.1.0.tgz"},"_from":".","_npmVersion":"1.2.22","_npmUser":{"name":"popomore","email":"sakura9515@gmail.com"},"maintainers":[{"name":"popomore","email":""}],"directories":{},"publish_time":1385997271264,"_hasShrinkwrap":false,"_cnpm_publish_time":1385997271264,"_cnpmcore_publish_time":"2021-12-16T14:55:18.774Z"},"0.0.0":{"name":"timers","version":"0.0.0","description":"","main":"index.js","repository":"","author":"","license":"MIT","_id":"timers@0.0.0","dist":{"shasum":"ef7f5276a3328ec70928a93bd56f634fe803dfe8","size":205,"noattachment":false,"key":"/timers/-/timers-0.0.0.tgz","tarball":"http://name.csiicloud.com:7001/timers/download/timers-0.0.0.tgz"},"_from":".","_npmVersion":"1.2.22","_npmUser":{"name":"popomore","email":"sakura9515@gmail.com"},"maintainers":[{"name":"popomore","email":""}],"directories":{},"publish_time":1385962937656,"_hasShrinkwrap":false,"_cnpm_publish_time":1385962937656,"_cnpmcore_publish_time":"2021-12-16T14:55:18.956Z"}},"readme":"# Schedule\n\nA tiny cron-like tools for humman, implement by Node.js\n\n[![Build Status](https://travis-ci.org/popomore/schedule.png?branch=master)](https://travis-ci.org/popomore/schedule)\n[![Coverage Status](https://coveralls.io/repos/popomore/schedule/badge.png)](https://coveralls.io/r/popomore/schedule)\n\n---\n\n## Install\n\n```\n$ npm install schedule\n```\n\n## Usage\n\n```\nvar every = require('schedule').every;\nevery('2s').do(function() {\n  // do your job\n});\n```\n\nYou can stop interval when some exception\n\n```\nvar every = require('schedule').every;\nvar ins = every('2 seconds').do(cb);\n\nprocess.on('uncaughtException', function() {\n  ins.stop();\n})\n```\n\n## Format\n\n- ms, millisecond, milliseconds\n- s, second, seconds\n- m, minite, minites\n- h, hour, hours\n- d, day, days\n\n## Lisence\n\nMIT\n","_attachments":{},"homepage":"https://github.com/popomore/timers","bugs":{"url":"https://github.com/popomore/timers/issues"},"license":"MIT"}