
Product
Go Support Is Now Generally Available
Socket's Go support is now generally available, bringing automatic scanning and deep code analysis to all users with Go projects.
@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,350 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.
Product
Socket's Go support is now generally available, bringing automatic scanning and deep code analysis to all users with Go projects.
Security News
vlt adds real-time security selectors powered by Socket, enabling developers to query and analyze package risks directly in their dependency graph.
Security News
CISA extended MITRE’s CVE contract by 11 months, avoiding a shutdown but leaving long-term governance and coordination issues unresolved.