1.0.7 • Published 2 years ago

xun-cli v1.0.7

Weekly downloads
2
License
MIT
Repository
github
Last release
2 years ago

一个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
1.0.7

2 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago