shortlink-cli
生成/还原短连接命令行接口
install
npm install -g shortlink-cli
Usage
# 生成短链接
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!