add-new

1.2.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i add-new

Weekly Downloads

0

Version

1.2.0

License

MIT

Unpacked Size

4.82 kB

Total Files

4

Last publish

Collaborators

  • lxgreen