Socket
Book a DemoInstallSign in
Socket

chnpm

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chnpm

Manage your npm files with ease

latest
Source
npmnpm
Version
1.1.4
Version published
Maintainers
1
Created
Source

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

Keywords

cli-app

FAQs

Package last updated on 30 Jun 2015

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