1.2.0 • Published 5 years ago
tiink v1.2.0
Tiink
Tiink is a simple Job Schedule for NodeJS.
Installation:
npm install tiink --saveUsage:
Import the module into your project
const Tiink = require('tiink');
// OR
import { Tiink } from 'tiink';Create a new TeaTime
const manager = new Tiink();const options = {
hour: 3,
weekday: []
};
manager.addJob('<JOB_NAME>', options, async () => {
/*...YOUR LOGIC GOES HERE ...*/
});Specifications:
Methods:
| Methods | Description | Ready |
|---|---|---|
| addJob() | Creates a job in the manager | ✓ |
| stopJob() | Only stops a job in the manager | ✓ |
| deleteJob() | Deletes a job from the manager | ✓ |
| restartJob() | Restarts job in the manager | ✓ |
Options:
| Option | Description |
|---|---|
| minute | Represents minute in numbers |
| hour | Represents hour in numbers |
| weekday | Represents weekday in numbers |
1.2.0
5 years ago
1.1.12
5 years ago
1.1.14
5 years ago
1.1.13
5 years ago
1.1.11
5 years ago
1.1.10
5 years ago
1.1.9
5 years ago
1.1.8
5 years ago
1.1.7
5 years ago
1.1.6
5 years ago
1.1.5
5 years ago
1.1.4
5 years ago
1.1.3
5 years ago
1.1.2
5 years ago
1.1.1
5 years ago
1.1.0
5 years ago
1.0.4
5 years ago
1.0.3
5 years ago
1.0.1
5 years ago
1.0.0
5 years ago