1.1.2 • Published 5 years ago
ccscan v1.1.2
ccscan
Scan files for credit card numbers
Usage
npx ccscan
Precommit Hook
You can also add ccscan to your project and set it up as a precommit hook that will block any commits that contain card numbers.
Install Dependencies
yarn add --dev ccscan husky lint-staged or npm install -D ccscan husky lint-staged
Add to package.json
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{ts,tsx,js}": [
"ccscan",
"git add"
]
}Contributing
- Fork this repo
- Clone the forked repo
- Install dependencies:
yarn
Building
yarn build
To clean the build directory run yarn clean
Running Tests
yarn test
Publishing
- Update the version in
package.json - Add a
CHANGELOG.mdentry - Commit your changes
- Run
npm packto see what will be published then delete the.tgzfile that was created - Run
npm publish - Create a release on GitHub. Use the version as the tag and release name. For example for version
1.0.0the tag and release name would bev1.0.0.