u.js
Useful command utilities.
Install
npm install -g u.js
Usage
Usage: u [options] [command] Commands: tiny <fromImgFile> [toNewFile] 调用 tinypng 接口压缩图片(需要翻墙) ocr [options] <imgFile> 调用 baidu ocr 接口识别图片上文字 words [options] <string> 调用 baidu 分词接口对字符串进行分词 ip <ip> 查询 ip 所在的地理位置 Options: -h, --help output usage information -V, --version output the version number -b, --baidu-api-key <string> 设置百度 API_KEY,默认会使用一个免费的 KEY -l, --level <level> ylog 日志级别:silly, verbose, debug, info, ok , warn, error, fatal, silent
Contributing
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using gulp.
History
License
Copyright (c) 2015 Zhonglei Qiu. Licensed under the MIT license.