README
@ygkit/secure
Node secure scan tool.
Functions
Name | Description |
---|---|
scan | Scan sensitive information. |
Install
$ npm i @ygkit/secure -g
Usage
Run command in your git project:
$ ygsec
Notice: This command using
git diff
message to check.
With Husky
If you don't want to run ygsec
manually, you can use it with husky.
Firstly install husky
and @ygkit/secure
in your project:
$ npm i @ygkit/secure husky --save-dev
Then config pre-commit
hook in package.json
:
{
"husky": {
"hooks": {
"pre-commit": "ygsec"
}
}
}
After that, ygsec
will run automaticly when you create a new git commit.
License
MIT