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.
couchdb-expired
Advanced tools
This worker can be launched by cron or other scheduler to run daily and bulk deletions all expired documents from your couchdb databases.
This worker can be launched by cron or other scheduler to run daily and bulk deletions all expired documents from your couchdb databases.
npm install expired -g
First you want to create a config file, this file will list the server and all of your databases that you wish to manage: (eg. expired-config.json)
{
"server": "http://localhost:5984",
"dbs": ["*"],
"_design_doc": {
"_id": "expired",
"language": "javascript",
"views": {
"_default": {
"map": "function(doc) { \n var expire = (new Date(doc.expires_in)),\n today = (new Date());\n if (expire < today) {\n emit(doc._id, doc._rev);\n }\n}\n"
}
}
}
}
crontab -e
0 3 * * * expired ~/expired-config.json
Now every day on the 3rd hour the expire job should run.
npm test
npm install
npm test
MIT
FAQs
This worker can be launched by cron or other scheduler to run daily and bulk deletions all expired documents from your couchdb databases.
We found that couchdb-expired 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.