0.0.7 • Published 5 years ago

xjnpm v0.0.7

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

xjnpm

NPM version build status appveyor build status David deps

xjnpm: npm client for cnpmjs.org

Requirements

MinimumRecommended
NodeJS4.0.0stable

Install

$ npm install xjnpm -g

If you're in China, maybe you should install it from our China mirror:

$ npm install xjnpm -g --registry=https://r.npm.taobao.org

Usage

Support all commands just like npm.

Sync packages from npm

$ xjnpm sync [moduleName]

Open package document or git web url

$ xjnpm doc [name]
$ xjnpm doc -g [name] # open git web url directly

Build your own private registry npm cli

$ npm install xjnpm -g

# then alias it
$ alias mynpm='cnpm --registry=http://registry.npm.example.com \
  --registryweb=http://npm.example.com \
  --userconfig=$HOME/.mynpmrc'

Install with original npm cli

cnpm using npminstall by default. If you don't like symlink mode for node_modules, you can change the installer to original npm. But you will lose the fastest install speed.

$ xjnpm i --by=npm react-native

License

MIT