0.0.6 • Published 6 years ago

cronode v0.0.6

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

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

MethodExampleDescription
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.

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.1

6 years ago