
Security News
Vite Releases Technical Preview of Rolldown-Vite, a Rust-Based Bundler
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
ts-cron-validator
Advanced tools
A TypeScript type level CRON expression validator!
Expressions supported are the one generated and describe on crontab.guru website. This means that you can use this library to check standard CRON expressions but also non standard one. Also, this type level validator works quite well in conjunction with cron engines such as node-cron.
For a live demo, you can try this codesandbox
To install this tiny library:
npm install ts-cron-validator
Then you have the choice between two helper functions:
Below some examples that show how to use those two helpers:
import { validCronExpression, validStandardCronExpression } from 'ts-cron-validator';
validStandardCronExpression('0 3 * * * '); // OK padding accepted
validStandardCronExpression('42 * * * '); // KO missing day of week part
validStandardCronExpression('59 4 * * *'); // OK
validStandardCronExpression('60 4 * * *'); // KO incorrect minutes part
validCronExpression('20 59 4 * dec mon'); // OK non standard CRON expression are accepted
// by validCronExpression()
FAQs
TypeScript type-level CRON expression validator
The npm package ts-cron-validator receives a total of 364 weekly downloads. As such, ts-cron-validator popularity was classified as not popular.
We found that ts-cron-validator demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
Research
Security News
A malicious npm typosquat uses remote commands to silently delete entire project directories after a single mistyped install.
Research
Security News
Malicious PyPI package semantic-types steals Solana private keys via transitive dependency installs using monkey patching and blockchain exfiltration.