jadwalin

0.0.6 • Public • Published

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');

Dependents (0)

Package Sidebar

Install

npm i jadwalin

Weekly Downloads

0

Version

0.0.6

License

MIT

Unpacked Size

10.9 kB

Total Files

9

Last publish

Collaborators

  • adeyahya