Comparing version 1.1.11 to 1.1.12
{ | ||
"name": "croner", | ||
"version": "1.1.11", | ||
"version": "1.1.12", | ||
"description": "Isomorphic JavaScript cron parser and scheduler.", | ||
@@ -5,0 +5,0 @@ "author": "Hexagon <github.com/hexagon>", |
@@ -9,13 +9,41 @@ | ||
```html | ||
<script src="//cdn.56k.guru/js/croner/latest/croner.min.js"></script> | ||
``` | ||
```javascript | ||
// Run a function each second | ||
Cron('* * * * * *', function () { | ||
console.log('This will run every second'); | ||
}); | ||
``` | ||
# Installation | ||
## Node.js | ||
## Node.js (server) | ||
```npm install croner``` | ||
## Browser (AMD and regular usage) | ||
### cdn (client) | ||
Download lib/croner.min.js and import with script-tag or AMD as usual. | ||
Copy and paste one of the following script tags. | ||
**Minified** | ||
```html | ||
<script src="//cdn.56k.guru/js/croner/latest/croner.min.js"></script> | ||
``` | ||
**Full** | ||
```html | ||
<script src="//cdn.56k.guru/js/croner/latest/croner.js"></script> | ||
``` | ||
### Manual (server/client) | ||
* Download latest [zipball](http://github.com/Hexagon/croner/zipball/master/) | ||
* Unpack | ||
* Grab croner.js (or croner.min.js) from the [lib/](/lib) folder | ||
# Examples | ||
@@ -22,0 +50,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
42211
182