1.2.0 • Published 5 years ago
add-new v1.2.0
ad
A shorthand CLI for directory and file creation
Installation
npm install -g add-newUsage
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 informationExamples
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} -tresult:
src
|____components
| |____todo-item.ts
| |____todo-item.scss
| |____todo-list.scss
| |____todo-list.ts