plantask
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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

/plantask/

    Package Sidebar

    Install

    npm i plantask

    Weekly Downloads

    0

    Version

    1.0.0

    License

    ISC

    Unpacked Size

    9.45 kB

    Total Files

    6

    Last publish

    Collaborators

    • nikhegg