Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/popomore/schedule
A tiny cron-like tools for humman
https://github.com/popomore/schedule
Last synced: 2 months ago
JSON representation
A tiny cron-like tools for humman
- Host: GitHub
- URL: https://github.com/popomore/schedule
- Owner: popomore
- Archived: true
- Created: 2013-12-02T08:25:47.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2016-09-17T17:32:47.000Z (over 8 years ago)
- Last Synced: 2024-10-14T12:36:30.568Z (3 months ago)
- Language: JavaScript
- Size: 129 KB
- Stars: 11
- Watchers: 4
- Forks: 3
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-github-star - schedule - like tools for humman | popomore | 10 | (JavaScript)
README
# Schedule
A tiny cron-like tools for humman, implement by Node.js
[![Build Status](https://travis-ci.org/popomore/schedule.png?branch=master)](https://travis-ci.org/popomore/schedule)
[![Coverage Status](https://coveralls.io/repos/popomore/schedule/badge.png)](https://coveralls.io/r/popomore/schedule)---
## Install
```
$ npm install schedule
```## Usage
```
var every = require('schedule').every;
every('2s').do(function() {
// do your job
});
```You can stop interval when some exception
```
var every = require('schedule').every;
var ins = every('2 seconds').do(cb);process.on('uncaughtException', function() {
ins.stop();
})
```## Format
- ms, millisecond, milliseconds
- s, second, seconds
- m, minite, minites
- h, hour, hours
- d, day, days## Lisence
MIT