1.0.3 • Published 4 years ago
sensitive-word-check v1.0.3
sensitive-word-check
敏感词检查工具
Installation
npm i --save-dev sensitive-word-checkUsage
与lint-staged 结合使用
"lint-staged": {
"*.{js,vue}": "sensitive-word-check"
},Options
使用-w或 --word自定义敏感词。
示例代码:
"lint-staged": {
"*.{js,vue}": "sensitive-word-check -w '自定义敏感词1,自定义敏感词2'"
},使用--help,查看帮助信息
示例代码:
$ npx sensitive-word-check --help
Usage: sensitive-word-check [options]
Options:
-V, --version output the version number
-w, --word <value> 需要检查的敏感词 (default: "企微管家, 微盛, weshine, wshoto")
-h, --help display help for command