xun-cli

1.0.7 • Public • Published

一个Nodejs命令行工具,可以查看日期、查看天气、查看本机IP地址、创建.gitignore文件、创建.prettierrc.js文件。

全局安装

$ npm install -g xun-cli

使用

  1. 查看日期
$ xun-cli date
  1. 查看指定城市天气

默认显示北京的天气,支持的城市有北京、上海、天津、杭州、成都、郑州。

$ xun-cli weather 
$ xun-cli weather shanghai
$ xun-cli weather tianjin
$ xun-cli weather hangzhou
$ xun-cli weather chengdu
$ xun-cli weather zhenzhou
  1. 查看热门城市天气
$ xun-cli hot
  1. 查看本机IP地址
$ xun-cli ip
  1. 查看帮助
$ xun-cli help
  1. 创建.gitignore文件
$ xun-cli git
  1. 创建.prettierrc.js文件
$ xun-cli prettier
  1. Serve a static site
$ xun-cli serve
$ xun-cli serve 3000

Readme

Keywords

Package Sidebar

Install

npm i xun-cli

Weekly Downloads

1

Version

1.0.7

License

MIT

Unpacked Size

7.4 kB

Total Files

3

Last publish

Collaborators

  • pengjielee