Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
crontzconvert
Advanced tools
crontzconvert is a JavaScript library that, given a cron expression, a source timezone and a destination timezone, transforms the cron expression for that timezone.
First, install the module:
npm install crontzconvert
Then, depending upon your usage context, add a reference to it:
import { convert } from 'crontzconvert';
convert("0 0 8-10 * * *", "UTC", "US/Arizona");
> "0 0 1-3 * * *"
convert("0 30 23 L * *", "UTC", "Africa/Lagos");
> "0 30 0 1 * *"
convert("0 30 0 1 * *", "Africa/Lagos", "UTC");
> "0 30 23 L * *"
convert("0 30 23 * * 2,6", "Africa/Lagos", "UTC");
> "0 30 0 * * 0,3"
convert("0 0 0 1 12 *", "Africa/Lagos", "UTC");
> "0 0 23 L 11 *"
convert("0 0 0 31 12 *", "UTC", "Africa/Lagos");
> "0 0 0 1 1 *"
convert("0 0 23 30 11 *", "UTC", "Africa/Lagos");
> "0 0 0 1 12 *"
crontzconvert is freely distributable under the terms of the MIT license.
FAQs
Convert cron expressions for others timezones
The npm package crontzconvert receives a total of 700 weekly downloads. As such, crontzconvert popularity was classified as not popular.
We found that crontzconvert demonstrated a healthy version release cadence and project activity because the last version was released less than 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’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.