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

cron-runner

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cron-runner - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

README.ru.md

5

index.js

@@ -27,3 +27,2 @@ var inherit = require('inherit'),

this._options = options;
this._logger = Logger.createLogger(module);

@@ -38,2 +37,5 @@ if (!this._options) {

}
typeof o === 'string' && (o = { pattern: o });
if (!o.pattern) {

@@ -43,2 +45,3 @@ throw new Error('Cron pattern was not set');

this._logger = Logger.setOptions(options['logger']).createLogger(module);
this._state = this._STATE.IDLE;

@@ -45,0 +48,0 @@

2

package.json
{
"name": "cron-runner",
"version": "0.1.0",
"version": "0.1.1",
"repository": {

@@ -5,0 +5,0 @@ "type": "git",

@@ -13,2 +13,4 @@ # cron-runner

[RUSSIAN DOCUMENTATION](./README.ru.md)
## Usage

@@ -41,7 +43,15 @@

```
You can receive more details about cron patterns configuration [here](https://www.npmjs.com/package/cron).
### API
#### constructor
You should call constructor of cron-runner module with options object (required).
The fields of this object should be:
* `cron` - simple string or object with field `cron` which contains cron pattern string value.
You can receive more details about cron patterns [here](https://www.npmjs.com/package/cron).
* `logger` - logger configuration. This is optional configuration field for
[logger](https://github.com/bem-site/logger) initialization.
#### setIdle

@@ -84,3 +94,8 @@ Switches state of runner to IDLE state. You can call it after your custom execution code for unlock

Special thanks to:
* Nikolay Ilchenko (http://github.com/tavriaforever)
* Konstantinova Gela (http://github.com/gela-d)
Maintainer @tormozz48
Please send your questions and proposals to: tormozz48@gmail.com
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