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

croner

Package Overview
Dependencies
Maintainers
1
Versions
228
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

croner - npm Package Compare versions

Comparing version 1.1.0 to 1.1.2

2

package.json
{
"name": "croner",
"version": "1.1.0",
"version": "1.1.2",
"description": "Isomorphic JavaScript cron parser and scheduler.",

@@ -5,0 +5,0 @@ "author": "Hexagon <github.com/hexagon>",

@@ -32,3 +32,3 @@

```javascript
// Run a function each second
// Run a function each second, limit to five runs
Cron('* * * * * *', { maxRuns: 5 }, function () {

@@ -41,5 +41,5 @@ console.log('This will run each second, but only five times.');

```javascript
// Run a function each second
// Run a function each second, get reference to job
var job = Cron('* * * * * *', function () {
console.log('This will run each second, but only five times.');
console.log('This will run each second.');
});

@@ -99,8 +99,8 @@

job.stop();
```
# Full API
```javascript
var o = Cron( <string pattern>[, <object options>] [, <function callback> ] );
var o = Cron( <string pattern> [, <object options>] [, <function callback> ] );

@@ -107,0 +107,0 @@ // If Cron is initialized without a scheduled function, cron itself is returned

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