Skip to content

Node Package Manager with brace expansion that switches between NPM versions, NPM 2 to NPM 6

License

Notifications You must be signed in to change notification settings

ex-machine/npmbrace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npmbrace

A thin wrapper around npm that provides cross-platform brace expansion syntax and allows to switch between NPM versions.

Now both *nix and Windows users are able to do something like:

nb i -S @angular/{core,common,router}@~6.0.0

Benefits

  • nb command that is shorter and more ergonomic than npm itself
  • cross-platform brace expansions
  • switch between NPM 2, NPM 3, NPM 4, NPM 5 and NPM 6 versions on the fly.

Installation

npm i -g npmbrace

Usage

Accepts same arguments as npm. Optional first numeric argument allows to switch between NPM versions. Versioned NPM commands have nb2 to nb6 aliases.

Default NPM installation is used:

npmbrace i -S @angular/{core,common,router}@~6.0.0

A shortcut:

nb i -S @angular/{core,common,router}@~6.0.0

NPM 2 is used:

nb 2 i -S @angular/{core,common,router}@~6.0.0

A shortcut:

nb2 i -S @angular/{core,common,router}@~6.0.0

About

Node Package Manager with brace expansion that switches between NPM versions, NPM 2 to NPM 6

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published