package
Scan files for credit card numbers
npm install ccscanGitHub-flavored package documentation.
Across all versions, last 30 days.
9,739 in 30 days
Runtime metadata.
Estimated unpacked size across 1 packages.
389.7 kB
Includes dependencies.
Scan files for credit card numbers
npx ccscanYou can also add ccscan to your project and set it up as a precommit hook that will block any commits that contain card numbers.
yarn add --dev ccscan husky lint-staged or npm install -D ccscan husky lint-staged
package.json"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{ts,tsx,js}": [
"ccscan",
"git add"
]
}yarnyarn buildTo clean the build directory run yarn clean
yarn testpackage.jsonCHANGELOG.md entrynpm pack to see what will be published then delete the .tgz file that was creatednpm publish1.0.0 the tag and release name would be v1.0.0.