1.1.4 • Published 10 years ago

chnpm v1.1.4

Weekly downloads
4
License
MIT
Repository
github
Last release
10 years ago

chnpm Build Status

Manage your npm files with ease

Install

$ npm install --save chnpm

Usage

var chnpm = require('chnpm');

chnpm.current();
//=> 'http://registry.npmjs.org'

CLI

$ npm install --global chnpm
  Manage your npm files with ease

  Usage
    $ chnpm [options] [name]

  Examples
    $ chnpm
    Currently on http://registry.npmjs.org

    $ chnpm --save npmjs
    Config saved to ~/.npmjs.npmrc

    $ npm config set registry http://registry.local.org
    $ chnpm --save local
    Config saved to ~/.local.npmrc

    $ chnpm local
    Switched to http://registry.local.org

  Options
    --save NAME  Save current configuration to ~/.NAME.npmrc

API

chnpm.current()

Returns current registry url.

chnpm.save(name)

Saves current config file as ~/.${name}.npmrc.

chnpm.load(name)

Saves ~/.${name}.npmrc as current config file.

License

MIT © Vsevolod Strukchinsky

1.1.4

10 years ago

1.1.3

10 years ago

1.1.2

10 years ago

1.0.0

10 years ago

0.1.3

11 years ago

0.1.2

11 years ago

0.1.1

11 years ago

0.1.0

11 years ago

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago