create-directories
v1.0.0
Published
Micro-library for easy directory creation.
Downloads
7
Maintainers
Readme
make-directories 📓
Micro-library for easy directory creation.
Installation 📦
yarn add make-cirectories
Usage 💻 ☕️
const mkdir = require("create-directories");
const structure = {
"books": {
"fiction": {}
"non-fiction": {}
},
"school": {
"programming": {
"notes": {},
"examples": {}
},
"databases": {},
"alorithms": {}
},
"other": {}
}
// creates directories in current directory 🐟
mkdir(structure);
// creates directory in other root 🐠
mkdir(structure, "/path/to/other/root");
Will produce the following directory structure:
books
fiction
non-fiction
school
programming
notes
examples
databases
algorithms
other