项目作者: huangyanxiong01

项目描述 :
Yarn registry switch tool
高级语言: JavaScript
项目地址: git://github.com/huangyanxiong01/yrs.git
创建时间: 2016-11-21T15:33:30Z
项目社区:https://github.com/huangyanxiong01/yrs

开源协议:

下载


Yrs

Yarn registry switch tool

NPM version Downloads npm

Features

Compatible with Node.js 4.0 or higher

Requirements

Install

  1. yarn global add yrs

OR

  1. npm install -g yrs

Example

  1. yrs ls
  2. name registry home
  3. npm https://registry.npmjs.org https://www.npmjs.org
  4. cnpm http://r.cnpmjs.org http://cnpmjs.org
  5. taobao https://registry.npm.taobao.org https://npm.taobao.org
  6. nj https://registry.nodejitsu.com https://www.nodejitsu.com
  7. rednpm http://registry.mirror.cqupt.edu.cn http://npm.mirror.cqupt.edu.cn/
  8. npmMirror https://skimdb.npmjs.com/registry https://skimdb.npmjs.com/
  9. edunpm http://registry.enpmjs.org http://www.enpmjs.org
  1. yrs use taobao
  2. yarn config v0.17.6
  3. success Set "registry" to "https://registry.npm.taobao.org".
  4. Done in 0.03s.

Usage

  1. Usage: yrs [options] [command]
  2. Commands:
  3. current Show current registry name
  4. ls List all the registries
  5. use <registryName> Change registry to registry
  6. add <registryName> <url> [home] Add one custom registry
  7. del <registryName> Delete one custom registry
  8. * Any
  9. Options:
  10. -h, --help output usage information
  11. -V, --version output the version number

Contributing

Registry

  • Add registry to registeries.json

TODO

  • Test
  • travis CI

Development environment