ad
A shorthand CLI for directory and file creation
Installation
npm install -g add-new
Usage
ad [options] <path> [morePaths...]
Options:
-V, --version output the version number
-t, --tree display result tree
-d, --debug debug messages on
-h, --help output usage information
Examples
Create directory
Make sure to add a /
at the end:
ad dir
creates a file named "dir"
ad dir/
creates a directory "dir"
Path expansion
$ ad src/components/todo-{list,item}.{ts,scss} -t
result:
src
|____components
| |____todo-item.ts
| |____todo-item.scss
| |____todo-list.scss
| |____todo-list.ts