Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/myfreax/yrs
Yarn registry switch tool
https://github.com/myfreax/yrs
registry switch yarn yrs
Last synced: about 10 hours ago
JSON representation
Yarn registry switch tool
- Host: GitHub
- URL: https://github.com/myfreax/yrs
- Owner: myfreax
- Created: 2016-11-21T15:33:30.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-02-22T10:21:46.000Z (almost 8 years ago)
- Last Synced: 2024-05-31T15:49:12.038Z (9 months ago)
- Topics: registry, switch, yarn, yrs
- Language: JavaScript
- Homepage: http://www.myfreax.com/
- Size: 91.8 KB
- Stars: 12
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Yrs
>Yarn registry switch tool
[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![npm][npm-license]][npm-url]
## Features
Compatible with Node.js 4.0 or higher
## Requirements
- [Yarn](https://yarnpkg.com)
## Install
```
yarn global add yrs
```
OR```
npm install -g yrs
```## Example
```
yrs lsname registry home
npm https://registry.npmjs.org https://www.npmjs.org
cnpm http://r.cnpmjs.org http://cnpmjs.org
taobao https://registry.npm.taobao.org https://npm.taobao.org
nj https://registry.nodejitsu.com https://www.nodejitsu.com
rednpm http://registry.mirror.cqupt.edu.cn http://npm.mirror.cqupt.edu.cn/
npmMirror https://skimdb.npmjs.com/registry https://skimdb.npmjs.com/
edunpm http://registry.enpmjs.org http://www.enpmjs.org```
```
yrs use taobaoyarn config v0.17.6
success Set "registry" to "https://registry.npm.taobao.org".
Done in 0.03s.```
## Usage
```
Usage: yrs [options] [command]
Commands:
current Show current registry name
ls List all the registries
use Change registry to registry
add [home] Add one custom registry
del Delete one custom registry
* AnyOptions:
-h, --help output usage information
-V, --version output the version number```
## Contributing#### Registry
- Add registry to registeries.json
#### TODO
- [ ] Test
- [ ] travis CI#### Development environment
- [Eslint](http://eslint.org/)
- [Babel](http://babeljs.io/)
- [Gulp](http://gulpjs.com/)
- [Jest](https://facebook.github.io/jest/)
- [Flow](https://flowtype.org/)[downloads-image]: https://img.shields.io/npm/dm/yrs.svg
[npm-image]: https://img.shields.io/npm/v/yrs.svg
[npm-license]: https://img.shields.io/npm/l/yrs.svg?style=flat
[npm-url]: https://github.com/huangyanxiong01/yrs