MCPcopy Index your code
hub / github.com/cnpm/cnpm

github.com/cnpm/cnpm @v9.4.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v9.4.0 ↗ · + Follow
9 symbols 18 edges 15 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

cnpm

NPM Version NPM Download NPM Quality GitHub Actions CI FOSSA Status

logo

cnpm: npm client for npmmirror.com

Requirements

Minimum Recommended
Node.js 14.18.0 LTS

Install

npm install cnpm -g

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

npm install cnpm -g --registry=https://registry.npmmirror.com

Usage

Support all commands just like npm.

Sync packages from npm

cnpm sync [moduleName]

Open package document or git web url

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

Build your own private registry npm cli

npm install cnpm -g

# then alias it
alias mynpm='cnpm --registry=https://registry.npm.example.com \
  --registryweb=https://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.

cnpm i --by=npm react-native

License

MIT

Contributors

|[

fengmk2](https://github.com/fengmk2)

|[

dead-horse](https://github.com/dead-horse)

|[

semantic-release-bot](https://github.com/semantic-release-bot)

|[

alsotang](https://github.com/alsotang)

|[

0xflotus](https://github.com/0xflotus)

|[

weakish](https://github.com/weakish)

| | :---: | :---: | :---: | :---: | :---: | :---: | |[

gemwuu](https://github.com/gemwuu)

|[

ibigbug](https://github.com/ibigbug)

|[

qiu8310](https://github.com/qiu8310)

|[

elrrrrrrr](https://github.com/elrrrrrrr)

|[

fossabot](https://github.com/fossabot)

|[

popomore](https://github.com/popomore)

| [

xieren58](https://github.com/xieren58)

|[

xiaohuoni](https://github.com/xiaohuoni)

This project follows the git-contributor spec, auto updated at Wed Dec 06 2023 21:42:25 GMT+0800.

FOSSA Status

Core symbols most depended-on inside this repo

syncByNames
called by 4
bin/cnpm-sync.js
getDefaultRegistry
called by 2
lib/parse_argv.js
correct
called by 1
lib/origin_npm.js
checkOnePackage
called by 1
bin/cnpm-check.js
checkUpdate
called by 1
bin/cnpm-check.js
showLog
called by 1
bin/cnpm-sync.js
syncByPackage
called by 1
bin/cnpm-sync.js
sync
called by 0
bin/cnpm-sync.js

Shape

Function 9

Languages

TypeScript100%

Modules by API surface

bin/cnpm-sync.js4 symbols
bin/cnpm-check.js2 symbols
test/cnpm.test.js1 symbols
lib/parse_argv.js1 symbols
lib/origin_npm.js1 symbols

For agents

$ claude mcp add cnpm \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact