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

2.0.1 • Public • Published

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()

Package Sidebar

Install

npm i cronu

Weekly Downloads

2

Version

2.0.1

License

Apache-2.0

Unpacked Size

16.7 kB

Total Files

5

Last publish

Collaborators

  • unvented