jadwalin
v0.0.6
Published
Library for scheduling task
Downloads
3
Readme
jadwalin
Scheduling task with JavaScript
Installation
$ yarn install jadwalin
Usage
const jadwalin = require('jadwalin');
const task1 = () => {
const now = new Date();
console.log(now + ': selamat pagi hayati 1');
};
const task2 = () => {
const now = new Date();
console.log(now + ': selamat pagi hayati 2');
};
const scheduler1 = new jadwalin(task1);
const scheduler2 = new jadwalin(task2);
scheduler1.setiap(2000);
scheduler2.setiapJam('3:28');