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 4.0.71 to 4.0.72

mod.ts

5

package.json
{
"name": "croner",
"version": "4.0.71",
"version": "4.0.72",
"description": "Trigger functions in javascript using Cron syntax. No deps. All features.",

@@ -26,3 +26,4 @@ "author": "Hexagon <github.com/hexagon>",

"SECURITY.md",
"croner.png"
"croner.png",
"mod.ts"
],

@@ -29,0 +30,0 @@ "keywords": [

25

README.md

@@ -14,3 +14,4 @@ <p align="center">

* Find first date of next month, find date of next tuesday, etc.
* Works in Node.js >=4.0 (require and import)
* Works in Node.js >=4.0 (both require and import)
* Works in Deno >=1.16
* Works in browsers as standalone, UMD or ES-module.

@@ -53,2 +54,24 @@ * **Experimental feature:** Schedule in specific target timezones

### Deno
JavaScript
```javascript
import Cron from "https://cdn.jsdelivr.net/npm/croner@4/mod.ts";
Cron("* * * * * *", () => {
console.log("This will run every second.");
});
```
TypeScript
```typescript
import { Cron } from "https://cdn.jsdelivr.net/npm/croner@4/mod.ts";
let scheduler : Cron = new Cron("* * * * * *", {}, () => {
console.log("This will run every second.");
});
```
### Browser

@@ -55,0 +78,0 @@

@@ -60,3 +60,3 @@ /* ------------------------------------------------------------------------------------

* @param {string} pattern - Input pattern
* @param {CronOptions} [options] - Options
* @param {CronOptions|Function} [options] - Options
* @param {Function} [func] - Function to be run each iteration of pattern

@@ -63,0 +63,0 @@ * @returns {Cron}

Sorry, the diff of this file is not supported yet

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