Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jayin/shortlink-cli

cli for generate/restore shor link 生成/还原短连接命令行接口
https://github.com/jayin/shortlink-cli

Last synced: 10 days ago
JSON representation

cli for generate/restore shor link 生成/还原短连接命令行接口

Awesome Lists containing this project

README

        

## shortlink-cli

生成/还原短连接命令行接口

### install

```bash
npm install -g shortlink-cli
```

### Usage

```bash
# 生成短链接
shortlink gen [options] http://www.v2ex.com/
# =>
http://dwz.cn/v2extiger

# 还原短链接
shortlink restore http://dwz.cn/v2extiger
# =>
http://www.v2ex.com/
```

#### options

* `--baidu` 使用百度短连接服务 http://dwz.cn/
* `--weibo` 使用新浪微博短连接服务 http://open.weibo.com/wiki/2/short_url/shorten

### More

如果你想添加更多的短连接服务,请提交Pull Request!