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

node-cron-expression

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-cron-expression

Declarative functional crontab expression builder

  • 1.3.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2K
increased by18.39%
Maintainers
1
Weekly downloads
 
Created
Source

node-cron-expression

npm npm

Declarative functional cron expression builder. Use it with tools like node-cron or bull

Screenshot of node-cron-expression

Getting Started

Install node-cron-expression using npm:

$ npm install --save node-cron-expression

Import node-cron-expression and build an expression

const { onDayOfTheWeek, every, everyHour } = require('node-cron-expression');

console.log(onDayOfTheWeek(6)); // 0 0 * * 6
console.log(everyHour()); // 0 * * * *
console.log(every(8).hours()); // 0 */8 * * *

Documentation

Find all available methods with examples here.

Issues

Feel free to submit issues and enhancement requests here.

Contributing

In general, we follow the "fork-and-pull" Git workflow.

  • Fork the repo on GitHub;
  • Commit changes to a branch in your fork;
  • Pull request "upstream" with your changes;

NOTE: Be sure to merge the latest from "upstream" before making a pull request!

Please do not contribute code you did not write yourself, unless you are certain you have the legal ability to do so. Also ensure all contributed code can be distributed under the ISC License.

License

node-cron-expression is under MIT License.

Keywords

FAQs

Package last updated on 05 Jan 2022

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