Skip to content

robertn702/at-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

At

A cancellable, scheduled function for node

Installation

npm i --save at-node

Usage

const at = require('at-node');

// schedule a function by passing in a date or a datestring
at(new Date('10/10/2018'), cb);
at('10/10/2018', cb);

// a function is returned that cancels the scheduled function
const cancelCb = at('January 1, 2018', cb);

// change your mind?
cancelCb();

Testing

npm test

About

A cancellable, scheduled function for node

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published