u.js

0.0.1 • Public • Published

u.js

NPM version GitHub version

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

CHANGELOG

License

Copyright (c) 2015 Zhonglei Qiu. Licensed under the MIT license.

Package Sidebar

Install

npm i u.js

Weekly Downloads

0

Version

0.0.1

License

MIT

Last publish

Collaborators

  • qiu8310