Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 生成/还原短连接命令行接口
- Host: GitHub
- URL: https://github.com/jayin/shortlink-cli
- Owner: Jayin
- Created: 2015-09-26T14:21:12.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-10-10T04:14:15.000Z (about 9 years ago)
- Last Synced: 2024-08-09T01:07:24.972Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 156 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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!