
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
local-crontab
Advanced tools
A NodeJS library and utility to convert a crontab in a local timezone into a set of UTC crontabs. It creates multiple UTC crontabs because of Daylight Saving Time.
Check it out at unitedincome.github.io/local-crontab
$ npx local-crontab -h
usage: local-crontab [-h] [-v] [--tz TZ] CRONTAB
Convert local crontabs to UTC crontabs
Positional arguments:
CRONTAB A crontab in local time
Optional arguments:
-h, --help Show this help message and exit.
-v, --version Show program's version number and exit.
--tz TZ The timezone to use. Defaults to system timezone
$ npx local-crontab '0 10 * * *' --tz America/New_York
0 5 * 1-2,12 *
0 5 1-10 3 *
0 6 11-31 3 *
0 6 * 4-10 *
0 6 1-3 11 *
0 5 4-31 11 *
$ npx local-crontab '0 10 * * *' --tz America/Denver
0 3 * 1-2,12 *
0 3 1-10 3 *
0 4 11-31 3 *
0 4 * 4-10 *
0 4 1-3 11 *
0 3 4-31 11 *
Install with npm i local-crontab
, then:
> const {localCrontabToUtcCrontabs} = require('local-crontab');
> localCrontabToUtcCrontabs('0 10 * * *', 'America/New_York')
[ '0 5 * 1-2,12 *',
'0 5 1-10 3 *',
'0 6 11-31 3 *',
'0 6 * 4-10 *',
'0 6 1-3 11 *',
'0 5 4-31 11 *' ]
FAQs
Convert a local crontab to a set of UTC crontabs
The npm package local-crontab receives a total of 5,474 weekly downloads. As such, local-crontab popularity was classified as popular.
We found that local-crontab 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.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.