@ygkit/secure
v0.0.10
Published
Node secure scan tool
Readme
@ygkit/secure
Node secure scan tool.
Functions
| Name | Description | | ---- | --------------------------- | | scan | Scan sensitive information. |
Install
$ npm i @ygkit/secure -gUsage
Run command in your git project:
$ ygsecNotice: This command using
git diffmessage 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-devThen 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
