Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
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
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
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.