Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Prune a directory to contain a set number of sub-directories, retention policy is recency
Prune a directory to contain a set number of sub-directories, retention policy is recency. That is to say, oldest sub-directories are pruned first.
npm install dirkeeper
var keeper = require('dirkeeper')
// You wish to make '/myDir' only contain the 5 oldest sub-directories
keeper({count: 5, baseDir: '/myDir'}, function(err) {
if (err) throw err
console.log("pruned")
})
A count of 0 means prune all sub-directories:
var keeper = require('dirkeeper')
// You wish to make '/myDir' contain no sub-directories:
keeper({count: 0, baseDir: '/myDir'}, function(err) {
if (err) throw err
console.log("pruned everything")
})
Additionally, a count >= the actual number of sub-directories means prune nothing.
Run npm test
BSD
FAQs
Prune a directory to contain a set number of sub-directories, retention policy is recency
The npm package dirkeeper receives a total of 6 weekly downloads. As such, dirkeeper popularity was classified as not popular.
We found that dirkeeper demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.