sensitive-word-check

1.0.3 • Public • Published

sensitive-word-check

敏感词检查工具

Installation

npm i --save-dev sensitive-word-check

Usage

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

Package Sidebar

Install

npm i sensitive-word-check

Weekly Downloads

4

Version

1.0.3

License

ISC

Unpacked Size

6.09 kB

Total Files

8

Last publish

Collaborators

  • mango19920110