Socket
Socket
Sign inDemoInstall

super-mkdir

Package Overview
Dependencies
17
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    super-mkdir

Npm module for extend your power with the system folders


Version published
Maintainers
1
Install size
269 kB
Created

Readme

Source

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

Keywords

FAQs

Last updated on 31 Jan 2015

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc