Scan files for credit card numbers
npm install ccscan
!TypeScript 3.5.3
Scan files for credit card numbers
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
``json`
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{ts,tsx,js}": [
"ccscan",
"git add"
]
}
1. Fork this repo
1. Clone the forked repo
1. Install dependencies: yarn
#### yarn build
To clean the build directory run yarn clean
#### yarn test
1. Update the version in package.jsonCHANGELOG.md
1. Add a entrynpm pack
1. Commit your changes
1. Run to see what will be published then delete the .tgz file that was creatednpm publish
1. Run 1.0.0
1. Create a release on GitHub. Use the version as the tag and release name. For example for version the tag and release name would be v1.0.0`.