cronu
v2.0.1
Published
⌛ Simple, Minimalistic Scheduler
Downloads
2
Maintainers
Readme
cronu
Simple, minimalistic scheduler, created by Azury.
Installation
Install the Package
Install cronu using your favorite package manager.
npm i cronu
yarn add cronu
Schedule a Job
import schedule from 'cronu'
const task = await schedule('1h', async ({ firedAt }) => {
console.log('A job running every hour.')
console.log(firedAt) // a date string in ISO format
})
await task.pause()
await task.resume()