Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
da9c71eedb | |||
63405fc577 |
4
package-lock.json
generated
4
package-lock.json
generated
@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "@pushrocks/smarttime",
|
"name": "@pushrocks/smarttime",
|
||||||
"version": "3.0.41",
|
"version": "3.0.42",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@pushrocks/smarttime",
|
"name": "@pushrocks/smarttime",
|
||||||
"version": "3.0.41",
|
"version": "3.0.42",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@pushrocks/lik": "^5.0.0",
|
"@pushrocks/lik": "^5.0.0",
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@pushrocks/smarttime",
|
"name": "@pushrocks/smarttime",
|
||||||
"private": false,
|
"private": false,
|
||||||
"version": "3.0.41",
|
"version": "3.0.42",
|
||||||
"description": "handle time in smart ways",
|
"description": "handle time in smart ways",
|
||||||
"main": "dist_ts/index.js",
|
"main": "dist_ts/index.js",
|
||||||
"typings": "dist_ts/index.d.ts",
|
"typings": "dist_ts/index.d.ts",
|
||||||
|
@ -36,7 +36,7 @@ This class provides scheduling of functions with a cron syntax
|
|||||||
```typescript
|
```typescript
|
||||||
import { CronManager } from '@pushrocks/smarrtime';
|
import { CronManager } from '@pushrocks/smarrtime';
|
||||||
const cronManagerInstance = new CronManager();
|
const cronManagerInstance = new CronManager();
|
||||||
cronManagerInstance.addConrjob('* * * * * *', async () => {
|
cronManagerInstance.addCronjob('* * * * * *', async () => {
|
||||||
console.log('hello'); // will log 'hello' to console once every second;
|
console.log('hello'); // will log 'hello' to console once every second;
|
||||||
});
|
});
|
||||||
cronManagerInstance.start();
|
cronManagerInstance.start();
|
||||||
|
Reference in New Issue
Block a user