{"_id":"cron-async","_rev":"8-662dfbbb6bf9ae998aa8d281f766cb7b","name":"cron-async","dist-tags":{"latest":"1.2.1"},"versions":{"1.0.0":{"name":"cron-async","version":"1.0.0","keywords":["cron","async","await","schedule","scheduler","job","task","promise","promise-based","promise-based-cron","promise-based-scheduler","promise-based-schedule","promise-based-job","promise-based-task"],"author":{"name":"Ramesh Nair","email":"ram@hiddentao.com"},"license":"MIT","_id":"cron-async@1.0.0","maintainers":[{"name":"hiddentao","email":"ram@hiddentao.com"}],"homepage":"https://hiddentao.github.io/cron-async","dist":{"shasum":"af44774b146e0fc67e3dc3768a838499c8eaab01","tarball":"https://registry.npmjs.org/cron-async/-/cron-async-1.0.0.tgz","fileCount":7,"integrity":"sha512-Zfd+aPlRiwHA/2yMdYaRRi5WSH3K7axFYPdn9Hx07HJThfgxY4umfVikyu1womPLltugriHypYjEG4SVCDBmGw==","signatures":[{"sig":"MEUCIErlaJcmOjNgxUm1NGkVWtwkVFMn6FecW4xy5GCtGYSFAiEApY9h463tF+yUGSqVzq2BylirSZflmD6671ywEpmXmCk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":23170},"main":"dist/index.js","_from":"file:cron-async-1.0.0.tgz","husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"types":"dist/index.d.ts","scripts":{"dev":"tsc --watch","test":"mocha","build":"tsc","release":"release-it","build-docs":"rm -rf ./docs && typedoc","commitlint":"commitlint --edit","test-watch":"mocha --watch --parallel","publish-docs":"npm run build-docs && gh-pages -d docs"},"_npmUser":{"name":"hiddentao","email":"ram@hiddentao.com"},"_resolved":"/private/var/folders/5j/lkqdfcx103lgc_hn86tqrrww0000gn/T/384ec03c036e3ef8bfad2cb447cc79f0/cron-async-1.0.0.tgz","_integrity":"sha512-Zfd+aPlRiwHA/2yMdYaRRi5WSH3K7axFYPdn9Hx07HJThfgxY4umfVikyu1womPLltugriHypYjEG4SVCDBmGw==","_npmVersion":"9.6.6","description":"Execute something on a schedule, using cron syntax, with async/await support.","directories":{},"_nodeVersion":"20.2.0","dependencies":{"ts-node":"^10.9.1","cron-schedule":"^4.0.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.3.7","jest":"^29.6.1","husky":"^8.0.3","mocha":"^10.2.0","ts-jest":"^29.1.1","typedoc":"^0.24.8","gh-pages":"^5.0.0","release-it":"^16.1.3","typescript":"^5.1.6","@types/chai":"^4.3.5","@types/jest":"^29.5.3","@types/node":"^20.4.2","@types/mocha":"^10.0.1","@jest/globals":"^29.6.1","@commitlint/cli":"^17.6.7","@commitlint/config-conventional":"^17.6.7"},"_npmOperationalInternal":{"tmp":"tmp/cron-async_1.0.0_1689948848367_0.6422276199217685","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"cron-async","version":"1.0.2","keywords":["cron","async","await","schedule","scheduler","job","task","promise","promise-based","promise-based-cron","promise-based-scheduler","promise-based-schedule","promise-based-job","promise-based-task"],"author":{"name":"Ramesh Nair","email":"ram@hiddentao.com"},"license":"MIT","_id":"cron-async@1.0.2","maintainers":[{"name":"hiddentao","email":"ram@hiddentao.com"}],"homepage":"https://hiddentao.github.io/cron-async","dist":{"shasum":"22caf83d3bb78719e7f5646e09583ddf66e18701","tarball":"https://registry.npmjs.org/cron-async/-/cron-async-1.0.2.tgz","fileCount":7,"integrity":"sha512-ME/D9Ct+9noEqtMkwjVPmrhmj4JUKLV695pcO55Tf/qW5eiweNcXDEF2b9DUAht3jwSnzBHKx4ByWlRsk1yTTA==","signatures":[{"sig":"MEUCIDGiV4M2IAXmQT/Q0kAVv9Xg0A8S/i1UZfE46h5JDBbYAiEAq5FFFPF3+vZbVXZOJCEUK/tvwO3T/aXVnVOh3WX16Hk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":23340},"main":"dist/index.js","type":"module","husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"types":"dist/index.d.ts","engines":{"node":">=20.0.0"},"gitHead":"db12edb2d6492c2351cc91e40cd93ba369be36c4","scripts":{"dev":"tsc --watch","test":"mocha","build":"tsc","release":"release-it","build-docs":"rm -rf ./docs && typedoc","commitlint":"commitlint --edit","test-watch":"mocha --watch --parallel","postpublish":"npm run publish-docs","publish-docs":"npm run build-docs && gh-pages -d docs","prepublishOnly":"npm run build"},"_npmUser":{"name":"hiddentao","email":"ram@hiddentao.com"},"_npmVersion":"9.6.6","description":"Execute something on a schedule, using cron syntax, with async/await support.","directories":{},"_nodeVersion":"20.2.0","dependencies":{"ts-node":"^10.9.1","cron-schedule":"^4.0.0"},"engineStrict":true,"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.3.7","jest":"^29.6.1","husky":"^8.0.3","mocha":"^10.2.0","ts-jest":"^29.1.1","typedoc":"^0.24.8","gh-pages":"^5.0.0","release-it":"^16.1.3","typescript":"^5.1.6","@types/chai":"^4.3.5","@types/jest":"^29.5.3","@types/node":"^20.4.2","@types/mocha":"^10.0.1","@jest/globals":"^29.6.1","@commitlint/cli":"^17.6.7","@commitlint/config-conventional":"^17.6.7"},"_npmOperationalInternal":{"tmp":"tmp/cron-async_1.0.2_1689949874528_0.5417206679166637","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"cron-async","version":"1.0.3","keywords":["cron","async","await","schedule","scheduler","job","task","promise","promise-based","promise-based-cron","promise-based-scheduler","promise-based-schedule","promise-based-job","promise-based-task"],"author":{"name":"Ramesh Nair","email":"ram@hiddentao.com"},"license":"MIT","_id":"cron-async@1.0.3","maintainers":[{"name":"hiddentao","email":"ram@hiddentao.com"}],"homepage":"https://hiddentao.github.io/cron-async","dist":{"shasum":"9eda55d7c6a3436fa8c612477e7b20a35c24645a","tarball":"https://registry.npmjs.org/cron-async/-/cron-async-1.0.3.tgz","fileCount":6,"integrity":"sha512-vfq0jA08AcHgM89LzWG+0yGkIFXLzqPVK8X6XdpNVS01CV1zG8234/8FGG4phR+1ggkimTxSqj/a/gPID3veYQ==","signatures":[{"sig":"MEUCIFzq9SugsqiSlGikhGyfPJrL7UERwgzfsiNbNmxUiCj2AiEAvc1z1FcKMUINpGYrtiDJJMqYWA79zvBAkjEUs1Tc2v0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21728},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"engines":{"node":">=20.0.0"},"exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"}}},"gitHead":"a40b9c7cd24097330dddecd73e10b226b38d22b0","scripts":{"dev":"tsc --watch","test":"mocha --require ts-node/register","build":"tsc","release":"release-it","build-docs":"rm -rf ./docs && typedoc","commitlint":"commitlint --edit","test-watch":"mocha --watch --parallel","postpublish":"npm run publish-docs","publish-docs":"npm run build-docs && gh-pages -d docs","prepublishOnly":"npm run build"},"_npmUser":{"name":"hiddentao","email":"ram@hiddentao.com"},"_npmVersion":"9.6.6","description":"Execute something on a schedule, using cron syntax, with async/await support.","directories":{},"_nodeVersion":"20.2.0","dependencies":{"ts-node":"^10.9.1","cron-schedule":"^4.0.0"},"engineStrict":true,"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.3.7","jest":"^29.6.1","husky":"^8.0.3","mocha":"^10.2.0","ts-jest":"^29.1.1","typedoc":"^0.24.8","gh-pages":"^5.0.0","release-it":"^16.1.3","typescript":"^5.1.6","@types/chai":"^4.3.5","@types/jest":"^29.5.3","@types/node":"^20.4.2","@types/mocha":"^10.0.1","@jest/globals":"^29.6.1","@commitlint/cli":"^17.6.7","@commitlint/config-conventional":"^17.6.7"},"_npmOperationalInternal":{"tmp":"tmp/cron-async_1.0.3_1689950914351_0.36870329099328947","host":"s3://npm-registry-packages"}},"1.0.4":{"name":"cron-async","version":"1.0.4","keywords":["cron","async","await","schedule","scheduler","job","task","promise","promise-based","promise-based-cron","promise-based-scheduler","promise-based-schedule","promise-based-job","promise-based-task"],"author":{"name":"Ramesh Nair","email":"ram@hiddentao.com"},"license":"MIT","_id":"cron-async@1.0.4","maintainers":[{"name":"hiddentao","email":"ram@hiddentao.com"}],"homepage":"https://hiddentao.github.io/cron-async","dist":{"shasum":"f282f5b0bfd7f6296b2cff24f28e764bc7cd9f74","tarball":"https://registry.npmjs.org/cron-async/-/cron-async-1.0.4.tgz","fileCount":6,"integrity":"sha512-aMLPF56HCPgYGOUPn+vXzXPsst/AqhxlPDpJe1GdbB5EIvHR9y+g+2yNY0QZ6vcRGugu+df20YqAkMvAuD1o8w==","signatures":[{"sig":"MEQCIHjy7yf/FKX0PQvPl4cnqc6Pukwh2MfQFkFb9SeLfAnEAiBaEmvjTosvxf/ynZ7M8Fa0L2yJSUVyC+CZOkWCP1Hl6g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21515},"main":"dist/index.js","type":"module","husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"types":"dist/index.d.ts","engines":{"node":">=20.0.0"},"gitHead":"e2625fb912b334dc629eec60c7e53e9016a6aeec","scripts":{"dev":"tsc --watch","test":"mocha --require ts-node/register","build":"tsc","release":"release-it","build-docs":"rm -rf ./docs && typedoc","commitlint":"commitlint --edit","test-watch":"mocha --watch --parallel","postpublish":"npm run publish-docs","publish-docs":"npm run build-docs && gh-pages -d docs","prepublishOnly":"npm run build"},"_npmUser":{"name":"hiddentao","email":"ram@hiddentao.com"},"_npmVersion":"9.6.6","description":"Execute something on a schedule, using cron syntax, with async/await support.","directories":{},"_nodeVersion":"20.2.0","dependencies":{"ts-node":"^10.9.1","cron-schedule":"^4.0.0"},"engineStrict":true,"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.3.7","jest":"^29.6.1","husky":"^8.0.3","mocha":"^10.2.0","ts-jest":"^29.1.1","typedoc":"^0.24.8","gh-pages":"^5.0.0","release-it":"^16.1.3","typescript":"^5.1.6","@types/chai":"^4.3.5","@types/jest":"^29.5.3","@types/node":"^20.4.2","@types/mocha":"^10.0.1","@jest/globals":"^29.6.1","@commitlint/cli":"^17.6.7","@commitlint/config-conventional":"^17.6.7"},"_npmOperationalInternal":{"tmp":"tmp/cron-async_1.0.4_1689951309884_0.736026360556715","host":"s3://npm-registry-packages"}},"1.0.5":{"name":"cron-async","version":"1.0.5","keywords":["cron","async","await","schedule","scheduler","job","task","promise","promise-based","promise-based-cron","promise-based-scheduler","promise-based-schedule","promise-based-job","promise-based-task"],"author":{"name":"Ramesh Nair","email":"ram@hiddentao.com"},"license":"MIT","_id":"cron-async@1.0.5","maintainers":[{"name":"hiddentao","email":"ram@hiddentao.com"}],"homepage":"https://hiddentao.github.io/cron-async","dist":{"shasum":"4161f2ffffd851bbd0585faa47ee826c34fb401b","tarball":"https://registry.npmjs.org/cron-async/-/cron-async-1.0.5.tgz","fileCount":6,"integrity":"sha512-XcOP51wHEO/isxuKeZL6FM3QR1LHJuDd12CC/rJQoG2T8mKLAHZymHZkb/AsWpHDxPNvGw6FDWJe5CWsHukHOA==","signatures":[{"sig":"MEUCIBKyXVsLj8GcxGcCpiWEnm53lSq3erPTCLzYSumHqHywAiEAyIQSC/yUkwPFZfJ/r1pgOhdPEnuXiz/4SS1ve+jmGQ8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21647},"main":"dist/index.js","husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"types":"dist/index.d.ts","engines":{"node":">=20.0.0"},"gitHead":"d9a6099bebd1c33ab4260ddc6dbd32d9ee0fba2c","scripts":{"dev":"tsc --watch","test":"mocha --require ts-node/register","build":"tsc","release":"release-it","build-docs":"rm -rf ./docs && typedoc","commitlint":"commitlint --edit","test-watch":"mocha --watch --parallel","postpublish":"npm run publish-docs","publish-docs":"npm run build-docs && gh-pages -d docs","prepublishOnly":"npm run build"},"_npmUser":{"name":"hiddentao","email":"ram@hiddentao.com"},"_npmVersion":"9.6.6","description":"Execute something on a schedule, using cron syntax, with async/await support.","directories":{},"_nodeVersion":"20.2.0","dependencies":{"cron-schedule":"^3.0.6"},"engineStrict":true,"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.3.7","jest":"^29.6.1","husky":"^8.0.3","mocha":"^10.2.0","ts-jest":"^29.1.1","ts-node":"^10.9.1","typedoc":"^0.24.8","gh-pages":"^5.0.0","release-it":"^16.1.3","typescript":"^5.1.6","@types/chai":"^4.3.5","@types/jest":"^29.5.3","@types/node":"^20.4.2","@types/mocha":"^10.0.1","@jest/globals":"^29.6.1","@commitlint/cli":"^17.6.7","@commitlint/config-conventional":"^17.6.7"},"_npmOperationalInternal":{"tmp":"tmp/cron-async_1.0.5_1689953094567_0.4878125249474117","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"cron-async","version":"1.1.0","keywords":["cron","async","await","schedule","scheduler","job","task","promise","promise-based","promise-based-cron","promise-based-scheduler","promise-based-schedule","promise-based-job","promise-based-task"],"author":{"name":"Ramesh Nair","email":"ram@hiddentao.com"},"license":"MIT","_id":"cron-async@1.1.0","maintainers":[{"name":"hiddentao","email":"ram@hiddentao.com"}],"homepage":"https://hiddentao.github.io/cron-async","dist":{"shasum":"5ee540e9038afe93d88f030e2daf2433621d869c","tarball":"https://registry.npmjs.org/cron-async/-/cron-async-1.1.0.tgz","fileCount":6,"integrity":"sha512-/C/OOCnRNsFY3lcU5QFvKsUpmej5AgW0L8dtCYn/McAa9tsnDFsJwIP1SUDAF09CqAf5a5aUqrD7d02v3Y+kyg==","signatures":[{"sig":"MEQCIEfXstJBU4nJeGJEBhrOPFLnVkDavi15FhB15CaP3qzRAiB9S2t4SkqPiwgTdBIGOmS2P25RJCeNAXaWCaD641CRfg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21647},"main":"dist/index.js","husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"types":"dist/index.d.ts","engines":{"node":">=20.0.0"},"gitHead":"dfca6554e12147e02c9f8d476be86938df8f3a17","scripts":{"dev":"tsc --watch","test":"mocha --require ts-node/register","build":"tsc","release":"release-it","build-docs":"rm -rf ./docs && typedoc","commitlint":"commitlint --edit","test-watch":"mocha --watch --parallel","postpublish":"npm run publish-docs","publish-docs":"npm run build-docs && gh-pages -d docs","prepublishOnly":"npm run build"},"_npmUser":{"name":"hiddentao","email":"ram@hiddentao.com"},"_npmVersion":"10.7.0","description":"Execute something on a schedule, using cron syntax, with async/await support.","directories":{},"_nodeVersion":"20.15.1","dependencies":{"cron-schedule":"^3.0.6"},"engineStrict":true,"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.3.7","jest":"^29.6.1","husky":"^8.0.3","mocha":"^10.2.0","ts-jest":"^29.1.1","ts-node":"^10.9.1","typedoc":"^0.24.8","gh-pages":"^5.0.0","release-it":"^16.1.3","typescript":"^5.1.6","@types/chai":"^4.3.5","@types/jest":"^29.5.3","@types/node":"^20.4.2","@types/mocha":"^10.0.1","@jest/globals":"^29.6.1","@commitlint/cli":"^17.6.7","@commitlint/config-conventional":"^17.6.7"},"_npmOperationalInternal":{"tmp":"tmp/cron-async_1.1.0_1722275038722_0.6953592508946187","host":"s3://npm-registry-packages"}},"1.2.0":{"name":"cron-async","version":"1.2.0","keywords":["cron","async","await","schedule","scheduler","job","task","promise","promise-based","promise-based-cron","promise-based-scheduler","promise-based-schedule","promise-based-job","promise-based-task"],"author":{"name":"Ramesh Nair","email":"ram@hiddentao.com"},"license":"MIT","_id":"cron-async@1.2.0","maintainers":[{"name":"hiddentao","email":"ram@hiddentao.com"}],"homepage":"https://hiddentao.github.io/cron-async","dist":{"shasum":"65dc956f5769a03f8cf73415a3528a5f13daebc5","tarball":"https://registry.npmjs.org/cron-async/-/cron-async-1.2.0.tgz","fileCount":6,"integrity":"sha512-9CjhJ4iv3LHSmfacDl59XXwzQyBxViFpk1ULuuGsYPVs4cgHMno/YpUEQxQZhH74ENViHsc3yqmI9i6QpZK4yQ==","signatures":[{"sig":"MEQCIHuu2x/vlVWwlUvUpLRJqnmkdllIJWQHv2WCp9RSCvF3AiB5ucgNEMKlZZpCP6KFTIihZIiCVsVow71u9h0EbOIdaQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21777},"main":"dist/index.js","husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"types":"dist/index.d.ts","engines":{"node":">=20.0.0"},"gitHead":"a10ca5bc4a8ccd310e37ddc5d45aa23986df0a40","scripts":{"dev":"tsc --watch","test":"mocha --require ts-node/register","build":"tsc","release":"release-it","build-docs":"rm -rf ./docs && typedoc","commitlint":"commitlint --edit","test-watch":"mocha --watch --parallel","postpublish":"npm run publish-docs","publish-docs":"npm run build-docs && gh-pages -d docs","prepublishOnly":"npm run build"},"_npmUser":{"name":"hiddentao","email":"ram@hiddentao.com"},"_npmVersion":"10.7.0","description":"Execute something on a schedule, using cron syntax, with async/await support.","directories":{},"_nodeVersion":"20.15.1","dependencies":{"cron-schedule":"^3.0.6"},"engineStrict":true,"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.3.7","jest":"^29.6.1","husky":"^8.0.3","mocha":"^10.2.0","ts-jest":"^29.1.1","ts-node":"^10.9.1","typedoc":"^0.24.8","gh-pages":"^5.0.0","release-it":"^16.1.3","typescript":"^5.1.6","@types/chai":"^4.3.5","@types/jest":"^29.5.3","@types/node":"^20.4.2","@types/mocha":"^10.0.1","@jest/globals":"^29.6.1","@commitlint/cli":"^17.6.7","@commitlint/config-conventional":"^17.6.7"},"_npmOperationalInternal":{"tmp":"tmp/cron-async_1.2.0_1726029673218_0.0548349760588942","host":"s3://npm-registry-packages"}},"1.2.1":{"name":"cron-async","version":"1.2.1","description":"Execute something on a schedule, using cron syntax, with async/await support.","main":"dist/index.js","types":"dist/index.d.ts","author":{"name":"Ramesh Nair","email":"ram@hiddentao.com"},"homepage":"https://hiddentao.github.io/cron-async","license":"MIT","keywords":["cron","async","await","schedule","scheduler","job","task","promise","promise-based","promise-based-cron","promise-based-scheduler","promise-based-schedule","promise-based-job","promise-based-task"],"devDependencies":{"@commitlint/cli":"^17.6.7","@commitlint/config-conventional":"^17.6.7","@jest/globals":"^29.6.1","@types/chai":"^4.3.5","@types/jest":"^29.5.3","@types/mocha":"^10.0.1","@types/node":"^20.4.2","chai":"^4.3.7","gh-pages":"^5.0.0","husky":"^8.0.3","jest":"^29.6.1","mocha":"^10.2.0","release-it":"^16.1.3","ts-jest":"^29.1.1","ts-node":"^10.9.1","typedoc":"^0.24.8","typescript":"^5.1.6"},"scripts":{"build":"tsc","dev":"tsc --watch","test":"mocha --require ts-node/register","test-watch":"mocha --watch --parallel","build-docs":"rm -rf ./docs && typedoc","publish-docs":"npm run build-docs && gh-pages -d docs","prepublishOnly":"npm run build","postpublish":"npm run publish-docs","release":"release-it","commitlint":"commitlint --edit"},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"dependencies":{"cron-schedule":"^3.0.6"},"engineStrict":true,"engines":{"node":">=20.0.0"},"_id":"cron-async@1.2.1","gitHead":"7e9f4906c606a1a5341430d22a7d26297d1a180e","_nodeVersion":"24.2.0","_npmVersion":"11.3.0","dist":{"integrity":"sha512-drC42q2nzG1OBxJB21gemu+ilXZLnD9OGSCa6wZ4JfLIv6oUvdMqAfT5YpmV5Ymt8PPti/1jErmMUycOaV1KBw==","shasum":"1cd2a657cb93a0bc7e5e5029c639e8d659e1c7ae","tarball":"https://registry.npmjs.org/cron-async/-/cron-async-1.2.1.tgz","fileCount":6,"unpackedSize":21546,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIHeWJoSRK/NmzSPSv290rrCd0RtCn2sgqtGkucm3Qx3cAiEA3jjpqhf4RiBp4ePKaq2nHoJpvQI1ClR1jy8Zfcce+Gw="}]},"_npmUser":{"name":"hiddentao","email":"ram@hiddentao.com"},"directories":{},"maintainers":[{"name":"hiddentao","email":"ram@hiddentao.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/cron-async_1.2.1_1780992119609_0.384908374456006"},"_hasShrinkwrap":false}},"time":{"created":"2023-07-21T14:14:08.366Z","modified":"2026-06-09T08:01:59.932Z","1.0.0":"2023-07-21T14:14:08.554Z","1.0.2":"2023-07-21T14:31:14.726Z","1.0.3":"2023-07-21T14:48:34.541Z","1.0.4":"2023-07-21T14:55:10.052Z","1.0.5":"2023-07-21T15:24:54.742Z","1.1.0":"2024-07-29T17:43:58.957Z","1.2.0":"2024-09-11T04:41:13.559Z","1.2.1":"2026-06-09T08:01:59.752Z"},"author":{"name":"Ramesh Nair","email":"ram@hiddentao.com"},"license":"MIT","homepage":"https://hiddentao.github.io/cron-async","keywords":["cron","async","await","schedule","scheduler","job","task","promise","promise-based","promise-based-cron","promise-based-scheduler","promise-based-schedule","promise-based-job","promise-based-task"],"description":"Execute something on a schedule, using cron syntax, with async/await support.","maintainers":[{"name":"hiddentao","email":"ram@hiddentao.com"}],"readme":"[![NPM module](https://badge.fury.io/js/cron-async.svg)](https://badge.fury.io/js/cron-async)\n[![Follow on Twitter](https://img.shields.io/twitter/url/http/shields.io.svg?style=social&label=Follow&maxAge=2592000)](https://twitter.com/hiddentao)\n\n# cron-async\n\nJavascript library for executing tasks on a schedule, using cron syntax, with async/await support. It is inspired by [node-cron](https://www.npmjs.com/package/cron).\n\nIt's smart at handling async jobs. All executions are wrapped in a `try-catch` clause and errors are caught and logged. It also waits until the current iteration of \na job has finished executing before starting the next iteration, regardless of the job's schedule.\n\nFeatures:\n\n* Works in both Node.js and Browsers.\n* Performant: uses a single interval timer for all created jobs.\n* Customizable logger.\n* Typesript support / fully typed.\n* Auto-generated [API documentation](https://hiddentao.github.io/cron-async).\n\n## Installation\n\n* NPM: `npm i cron-async`\n* Yarn: `yarn add cron-async`\n* PNPM: `pnpm add cron-async`\n\n## Usage\n\nFirst create a `Cron` instance:\n\n```js\nimport { Cron } from 'cron-async'\n\nconst cron = new Cron()\n```\n\nNow add a job:\n\n```js\ncron.createJob('job1', {\n  cron: \"*/1 * * * * *\", // every second\n  onTick: async () => {\n    // do stuff in here on every iteration\n  },\n})\n```\n\nThe above job will run automatically every second. You can start and stop the job at any time:\n\n```js\ncron.getJob('job1').stop() // stop the job\n\n// ...\n\ncron.getJob('job1').start() // resume the job\n```\n\nYou can also delete the job from the cron instance entirely in two ways:\n\n```js\n// the following statements do the same thing...\ncron.deleteJob('job1')\ncron.getJob('job1').destroy()\n```\n\nBy defualt, the logger is the built-in `console` object. You can customize this by overriding the `log` config option:\n\n```js\ncron.createJob('job1', {\n  cron: \"*/1 * * * * *\", // every second\n  onTick: async () => { /* do stuff */ },\n  log: {\n    trace: (msg) => { /* do something */ },\n    debug: (msg) => { /* do something */ },\n    error: (msg) => { /* do something */ },\n  }\n})\n```\n\nYou can also specify the job to NOT automatically run when created:\n\n```js\ncron.createJob('job1', {\n  cron: \"*/1 * * * * *\", // every second\n  onTick: async () => { /* do stuff */ },\n  dontAutoRun: true,\n})\n\n// later on, we can start the job\ncron.getJob('job1').start()\n```\n\nEach job keeps track of the number of iterations it has run:\n\n```js\ncron.createJob('job1', {\n  cron: \"*/1 * * * * *\", // every second\n  onTick: async () => { /* do stuff */ },\n  dontAutoRun: true,\n})\n\n// after some time....\n\nconst n = cron.getJob('job1').getNumIterations()\n\nconsole.log( `Job has run ${n} times` )\n```\n\nThe `onTick()` function you provide is automatically wrapped in a `try-catch` clause by the scheduler. If you wish to process any thrown errors you can supply an `onError` handler:\n\n```js\ncron.createJob('job1', {\n  cron: \"*/1 * * * * *\", // every second\n  onTick: async () => { /* do stuff */ },\n  onError: (err: Error) => {\n    // do something with the error\n  }\n})\n```\n\nFinally, you can shutdown the `Cron` instance and its internal timer at any point using:\n\n```js\ncron.shutdown()\n```\n\nFor other available methods and properties please see the [API documentation](https://hiddentao.github.io/cron-async).\n\n\n## Developer guide\n\nTo build both ESM and CommonJS output:\n\n```shell\npnpm build\n```\n\nTo re-build the CommonJS output on chnage:\n\n```shell\npnpm dev\n```\n\nTo test:\n\n```shell\npnpm test\n```\n\nTo build the docs:\n\n```shell\npnpm build-docs\n```\n\nTo publish a new release (this will create a tag, publish to NPM and publish the latest docs):\n\n```shell\npnpm release\n```\n\n## License\n\nCopyright (C) 2023 [Ramesh Nair](https://hiddentao.com)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n","readmeFilename":"README.md"}