dont-commit-me
v1.0.3
Published
Prevent from committing sensitive words *防止提交敏感词*
Downloads
4
Readme
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