Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

scheduled_task

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

scheduled_task

as name

  • 1.0.4
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

Scheduled Task for everyday (or every week/month/year)

will update to every duration later

how to use

import { scheduledTask } from 'scheduledtask'

function breakfast(){
    console.log('have breakfast')
}
scheduledTask('09:00:00', breakfast)

the format

day task : 'HH:mm:ss'

week task : 'WWW HH:mm:ss', such as 'Wed 09:00:00'

month task: 'DD HH:mm:ss', such as '14 09:00:00'

year task: 'MM-DD HH:mm:ss', such as '03-14 09:00:00'

Keywords

FAQs

Package last updated on 26 Jul 2023

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc