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.
npm install co-cron
Cron_Wrapper#daemonize_route(namespace, options)
daemonize a specific route on your compound.js app so you can keep your code in the controller and still make it client accessible
compound.cron.daemonize_route 'test',
route: 'api#test'
params:
example: true
cronTime: '* * * * * *' # every second
start: false
Cron_Wrapper#job(namespace, options)
task = ->
# Runs every weekday (Monday through Friday)
# at 11:30:00 AM. It does not run on Saturday
# or Sunday.
console.log "I am a lovely function"
compound.cron.job 'test',
cronTime: '00 30 11 * * 1-5' # cron time
onTick: task # function to perform
start: false # to autostart the job or not
timeZone: "America/Los_Angeles" # schedule it based on a specific timezone
A convience wrapper for cron's base CronJob creation method
Cron_Wrapper#remove(namespace)
Stops & removes a job stored on a namespace from the Cron_Wrapper.jobs object
Cron_Wrapper#start(namespace)
Starts a job stored on the namespace in the Cron_Wrapper.jobs object
Cron_Wrapper#stop(namespace)
Stops a job stored on the namespace in the Cron_Wrapper.jobs object
FAQs
Cron tasks for compound apps
The npm package co-cron receives a total of 4 weekly downloads. As such, co-cron popularity was classified as not popular.
We found that co-cron 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’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.