1 | nrm -- NPM registry manager
|
2 | ===
|
3 |
|
4 | [![NPM version][npm-image]][npm-url]
|
5 |
|
6 | `nrm` can help you easy and fast switch between different npm registries,
|
7 | now include: `npm`, `cnpm`, `taobao`, `nj(nodejitsu)`.
|
8 |
|
9 | ## How to configure yarn to use private registry ?
|
10 | just add .yarnrc in your project’s directory and write there:
|
11 | `registry “http://your.registry”`
|
12 |
|
13 | Or you can configure it in your HOME directory's .yarnrc
|
14 |
|
15 |
|
16 | ## Install
|
17 |
|
18 | ```
|
19 | $ npm install -g nrm
|
20 | ```
|
21 |
|
22 | ## Example
|
23 | ```
|
24 | $ nrm ls
|
25 |
|
26 | * npm ----- https://registry.npmjs.org/
|
27 | cnpm ---- http://r.cnpmjs.org/
|
28 | taobao -- https://registry.npm.taobao.org/
|
29 | nj ------ https://registry.nodejitsu.com/
|
30 | skimdb -- https://skimdb.npmjs.com/registry
|
31 |
|
32 | ```
|
33 |
|
34 | ```
|
35 | $ nrm use cnpm //switch registry to cnpm
|
36 |
|
37 | Registry has been set to: http://r.cnpmjs.org/
|
38 |
|
39 | ```
|
40 |
|
41 | ## Usage
|
42 |
|
43 | ```
|
44 | Usage: nrm [options] [command]
|
45 |
|
46 | Commands:
|
47 |
|
48 | ls List all the registries
|
49 | use <registry> Change registry to registry
|
50 | add <registry> <url> [home] Add one custom registry
|
51 | set-auth <registry> <value> [always] Set authorize information for a custom registry
|
52 | set-email <registry> <value> Set email for a custom registry
|
53 | set-hosted-repo <registry> <value> Set hosted npm repository for a custom registry to publish packages
|
54 | del <registry> Delete one custom registry
|
55 | home <registry> [browser] Open the homepage of registry with optional browser
|
56 | test [registry] Show the response time for one or all registries
|
57 | publish [<tarball>|<folder>] Publish package to current registry if current registry is a custom registry. if you\'re not using custom registry, this command will run npm publish directly
|
58 | help Print this help
|
59 |
|
60 | Options:
|
61 |
|
62 | -h, --help output usage information
|
63 | -V, --version output the version number
|
64 | ```
|
65 |
|
66 | ## Registries
|
67 |
|
68 | * [npm](https://www.npmjs.org)
|
69 | * [cnpm](http://cnpmjs.org)
|
70 | * [nodejitsu](https://www.nodejitsu.com)
|
71 | * [taobao](http://npm.taobao.org/)
|
72 |
|
73 |
|
74 | ## Notice
|
75 |
|
76 | When you use an other registry, you can not use the `publish` command.
|
77 |
|
78 | ## TODO
|
79 |
|
80 | * When publish proxy to npm official registry
|
81 |
|
82 | ## LICENSE
|
83 | MIT
|
84 |
|
85 |
|
86 | [npm-image]: https://img.shields.io/npm/v/nrm.svg?style=flat-square
|
87 | [npm-url]: https://npmjs.org/package/nrm
|