1.0.11 • Published 3 years ago

xy-format v1.0.11

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

使用方法

安装

npm install @xachary/xy-format

更新

npm update @xachary/xy-format

命令

xy-format --path 路径 --exclude 正则1 正则2 --include 正则1 正则2

package.json

{
  "scripts": {
    "format": "xy-format"
  }
}

启动

npm run format

参数

--path

监听路径

--exclude

排除规则,格式为正则表达式。

--include

包含规则,格式为正则表达式,优先级高于--exclude。

--interval

默认 1000 毫秒间隔内,如果发现多个文件被修改,则终止修改。

--all

设定此选项,则取消间隔限制。