
Security Fundamentals
Turtles, Clams, and Cyber Threat Actors: Shell Usage
The Socket Threat Research Team uncovers how threat actors weaponize shell techniques across npm, PyPI, and Go ecosystems to maintain persistence and exfiltrate data.
@taskr/clear
Advanced tools
Remove one or multiple directories
$ npm install --save-dev @taskr/clear
exports.cleanup = function * (task) {
// single file
yield task.clear('foo.js');
// single directory
yield task.clear('dist');
// multiple directories
yield task.clear(['dist', 'build']);
// glob pattern(s)
yield task.clear(['dist/*.css', 'dist/js/*']);
// mixed
yield task.clear(['foo.js', 'build', 'dist/*.css']);
// with options
yield task.clear('dist', {maxBusyTries: 5});
}
Type: string
or array
A filepath, directory path, or glob pattern. For multiple paths, use an array
.
Type: object
Default: {}
All options are passed directly to rimraf
. Please see its documentation on options.
Any issues or questions can be sent to the Taskr monorepo.
Please be sure to specify that you are using @taskr/clear
.
MIT © Luke Edwards
FAQs
Remove one or multiple directories
The npm package @taskr/clear receives a total of 10,159 weekly downloads. As such, @taskr/clear popularity was classified as popular.
We found that @taskr/clear 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.
Security Fundamentals
The Socket Threat Research Team uncovers how threat actors weaponize shell techniques across npm, PyPI, and Go ecosystems to maintain persistence and exfiltrate data.
Security News
At VulnCon 2025, NIST scrapped its NVD consortium plans, admitted it can't keep up with CVEs, and outlined automation efforts amid a mounting backlog.
Product
We redesigned our GitHub PR comments to deliver clear, actionable security insights without adding noise to your workflow.