🚀 Launch Week Day 3:Introducing Supply Chain Attack Campaigns Tracking.Learn More →
Socket
Book a DemoInstallSign in
Socket

run-daily

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

run-daily

Run some functions at specific times each day

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

run-daily

Run some functions at specific times each day. Poor mans cron in JS.

npm install run-daily

Usage

const runDaily = require('run-daily')

runDaily([ // specify some intervals (is utc)
  '15:30',
  '19:00',
  '00:00'
], function (i) {
  console.log('Time is:' + ['15:30', '19:00', '00:00'][i])
})

API

destroy = runDaily(times, fn)

Run a function at a specific time each day.

License

MIT

FAQs

Package last updated on 26 May 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts