You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

add-new

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

add-new

smarter mkdir/touch cli for *nix env

1.2.0
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

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


Keywords

mkdir

FAQs

Package last updated on 06 Feb 2021

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