Skip to content

2do2go/npack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npack

Build Status

npack - node.js packages manipulation tool. It provides few methods to install new package, fast switch between package versions, clean installed package.

Installation

$ npm install -g npack

alternatively you could install it locally

Usage

You should create npm tarball package first with a command npm pack.

Install package

Go to some directory and run:

$ npack install <path_to_npm_tarball_package>

Package will be installed and will be set as current.

Switch package

You can switch between installed packages with command:

$ npack use <package_name>

Show list and package info

In directory where you previously installed package run:

$ npack list

To show detailed info about package run:

$ npack info <package_name>

Uninstall package

To uninstall installed package run:

$ npack uninstall <package_name>

Execute "npm run" task from current package

To execute npm script with optional agruments run:

$ npack run <script_name>
$ npack run <script_name> arg_1 arg_2
$ npack run <script_name> -- arg_1 --with flag

License

MIT