
Company News
Andrew Becherer Joins Socket as Chief Information Security Officer
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.
fildes-extra
Advanced tools
Extends fildes with glob, cpy, rimraf and trash/empty-trash.
npm i --save fildes-extra
var files = require('fildes-extra');
// make dir
files.mkdir('./a/new/dir')
.then(function(){
// remove dir
return files.rmdir('./a/new');
})
.then(function(){
// copy dir
return files.copy(['./a'], './b');
})
.then(function(){
console.log('done!');
})
.catch(function(error){
console.error(error);
})
Promise fildes.find alias fildes.glob
uses glob (NPM Documentation).
fildes.find('**/*.{jpg,png}')
.then(function(images){
console.log('found', images.length, 'images')
})
Promise fildes.rm alias fildes.rmdir
uses rimraf (NPM Documentation).
fildes.rm('./path/to/dir')
.then(function(){
console.log('directory removed!');
});
Promise fildes.cp alias fildes.copy uses cpy (NPM Documentation).
fildes.cp(['./data/*.txt'], './destination')
.then(function(){
console.log('directory copied!');
});
Promise trash uses trash (NPM Documentation).
fildes.trash(['./data/file.txt'])
.then(function(){
console.log('directory copied!');
});
Promise empty-trash uses empty-trash (NPM Documentation).
fildes.emptyTrash()
.then(function(){
console.log('trash emptied!');
});
WARNING: tests will empty your trash!
npm test
# debug all
DEBUG=fildes* npm test
FAQs
Extends fildes promises with rm -rf, cp -r and mkdir -p
The npm package fildes-extra receives a total of 26 weekly downloads. As such, fildes-extra popularity was classified as not popular.
We found that fildes-extra 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.

Company News
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.

Company News
Replit is integrating Socket Firewall into its AI-powered development experience to help protect builders from malicious open source packages.

Security News
npm confirmed a tooling bug incorrectly marked several one-character packages as security holders and said it was working on a rollback.