cronode

0.0.6 • Public • Published

Cronode

Status: In development

Cron for Node.js with expressive code.

Installation

Use npm or yarn to install cronode.

npm install cronode
# or
yarn add cronode

Usage

const Cron = require('cronode')
 
Cron.job(() => {
 
  // Tasks
  console.log((new Date().toLocaleTimeString())
 
}).everyMinutes().start()

API

Method Example Description
start() Run the task.
yearly() Run the task every year.
monthly()
weekly()
days() days(0, 3, 5) Run task every Sundays, Wednesdays, and Fridays
dailyAt(time) dailyAt('14:20') Run task daily at specific time.
daily()
hourly()
everyMinutes()
everyFiveMinutes()
everyTenMinutes()
everyFifteenMinutes()
everyThirtyMinutes()
sundays()
mondays()
tuesdays()
wednesdays()
thursdays()
fridays()
saturdays()

License

Software licensed under the MIT license.

/cronode/

    Package Sidebar

    Install

    npm i cronode

    Weekly Downloads

    5

    Version

    0.0.6

    License

    MIT

    Unpacked Size

    6.68 kB

    Total Files

    7

    Last publish

    Collaborators

    • mul14