New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

super-mkdir

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

super-mkdir

Npm module for extend your power with the system folders

  • 0.1.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-77.78%
Maintainers
1
Weekly downloads
 
Created
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

Package last updated on 31 Jan 2015

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc