@defi-wonderland/crypto-husky-checks

1.5.6 • Public • Published

Node.js CI license badge

Crypto Husky Checks

Avoid committing sensitive information by installing these automated security checks in your precommit hook.

Features:

  • Checks for crypto private keys on commited code

⚠️ This repository does not support Windows OS


Install

# Install the latest versions (will be fixed to the current latest version)
npm add -D husky@latest @defi-wonderland/crypto-husky-checks@latest

# Enable husky and setup the prepare script
npm pkg set scripts.prepare="husky && wonderland-crypto-husky-checks install"
npm run prepare

Note: Using @latest installs the exact version that is latest at the time of installation, not a version range. This means your package.json will have fixed versions like "husky": "9.1.7" without any caret (^) or tilde (~) prefix.

Troubleshooting

If you encounter an error like this on macOS:

cp: .../node_modules/@defi-wonderland/crypto-husky-checks/@defi-wonderland/crypto-husky-checks/src/find-crypto-keys.sh: No such file or directory

This is a known issue with path construction on macOS that has been fixed in the latest version. Please update to the latest version of the package.

Checks:

find-crypto-keys.sh - Checks for crypto private keys on commited code. Should be added as a precommit hook

License

MIT license. Feel free to use, modify, and/or redistribute this software as you see fit. See the LICENSE file for more information.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.0-679559a90canary
1.5.619latest

Version History

VersionDownloads (Last 7 Days)Published
1.5.619
1.5.50
0.0.0-679559a90
0.0.0-74778aea0
0.0.0-0d30b6560
0.0.0-2d9d1afa0
0.0.0-ea27ba7c0
0.0.0-3faa4c4c0
0.0.0-4c81d0bf0
0.0.0-676673bd0
0.0.0-d9dc5aec0
1.4.00
1.3.028
1.2.00
0.0.0-29a100900
0.0.0-b7d9c7710
1.1.11
0.0.0-0a32ae770
0.0.0-d32275fe0
0.0.0-19732b581
0.0.0-87492d630
0.0.0-634a25a90
0.0.0-4ca1f6f00
0.0.0-41fa508f0
0.0.0-75c6a7630
0.0.0-8e86214c1
0.0.0-9a6b1f420

Package Sidebar

Install

npm i @defi-wonderland/crypto-husky-checks

Weekly Downloads

50

Version

1.5.6

License

MIT

Unpacked Size

7.73 kB

Total Files

5

Last publish

Collaborators

  • 0xgorilla
  • kelvinfichter
  • gas1cent
  • wonderland-bot
  • wei3erhase
  • 0xng