sm

super-mkdir

Npm module for extend your power with the system folders

Showing:

Popularity

Downloads/wk

6

Maintenance

No Maintenance Data Available

Package

Dependencies

2

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

Super-Mkdir

NPM

Installation

npm install super-mkdir

Usage example

Minimum to use

var mkdir = require('super-mkdir');

To get file name from a folder

var list = explorer('/my/folder/');
//return list of all the file inside

Create a new Folder

createFolder(nameFolder);

Delete function

  • Delete some files
mkdir.deleteFiles('/my/folder/',['file.png', 'file2.png', 'file3.png'] );
  • Delete all files in the folder
mkdir.deleteFiles('/my/folder/');

Rename some files

You can rename all files with this new name but not the extensions of the file.

Exemple:
  • filesTest.txt -> newName1.txt
  • otherFiles.txt -> newName1.txt
  • rename all of the files
mkdir.renameFiles('/my/folder/', 'newName');
  • rename some files
mkdir.renameFiles('/my/folder/',['file.png', 'file2.json', 'file3.png'], ['newNamefile.png', 'newNamefile2.json', 'newNamefile3.png']);

or this

var word = 'word';
mkdir.renameFiles('/my/folder/',['file.png', 'file2.json', 'file3.png'], [word+'newNamefile.png', word+'newNamefile2.json', word+'newNamefile3.png']);
//rename the files as wordnewNamefile.png

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100