Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Cron2English is a Ruby library for turning crontab schedules into English text.
It is roughly a Ruby port of Sean Burke's crontab2english Perl script, except its interface is a Ruby method rather than an executable, and it parses only time specs, not all the other things you might find in a crontab (comments, variable definitions, and the commands to run).
You can convert a time spec to English like so:
english = Cron2English.parse("40 5 * * *")
This will yield an array of strings, in this case the following:
["5:40am", "every day"]
These strings are chosen so as to sound vaguely human if you say:
Cron2English.parse("40 5 * * *").join(" ")
Cron2English understands just about anything you'll find in a crontab, including non-POSIX extensions. It can parse:
1-20/3 * * * *
1,2,3 * * * *
1-9,15-30 * * * *
1-9/3,15-30/4 * * * *
1 2 3 4 mON
1 2 3 4 mON-fri
1 2 3 jan 5
1 2 3 jan-apr 5
@reboot
@yearly
@annually
@monthly
@weekly
@daily
@midnight
@hourly
*/3 * * * *
None yet!
Commands for building/releasing/installing:
rake build
rake install
rake release
Copyright (c) 2014 Paul A. Jungwirth. See LICENSE.txt for further details.
FAQs
Unknown package
We found that cron2english 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 malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.