1.0.3 • Published 3 years ago

dont-commit-me v1.0.3

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

Don't Commit Me

Prevent from committing sensitive words
防止提交敏感词

Usage

npm i --save-dev husky dont-commit-me

add config to your package.json

{
  "husky": {
    "hooks": {
      "pre-commit": "dont-commit-me <sensitive word1>,<sensitive word2>,..."
    }
  }
}

// for example: dont commit if file includes google or youtube
{
  "husky": {
    "hooks": {
      "pre-commit": "dont-commit-me google,youtube, ..."
    }
  }
}

Development

npm i

node bin/dont-commit-me.js <sensitive word1>,<sensitive word2>,...

Publish

npm version major | minor | patch

git push origin --tags
1.0.3

3 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago