1.0.0 • Published 2 years ago

plantask v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

About

Plantask is a simple task scheduler for Node.js. You can plan some tasks to be done in a specific time without setting any timeouts.

Example

const {Tasker, Time} = require('plantask');
const tasker = new Tasker();
const time = new Time();
time.setMinutes(30);
tasker.onTime(time, function() {
    console.log("This message will be printed after 30 minutes!");

    // You can refresh start date to use it further in your code
    time.refresh().setMinutes(15); 
});