ban-sensitive-files is a zero-dependency npm package preventing accidental commits of sensitive data like API keys or passwords to Git repositories. It automatically scans your project during precommit and prepush Git hooks. Configuration is straightforward, allowing you to define patterns for file names, extensions, and contents that should be banned. This proactive approach helps safeguard secrets and maintain repository security by enforcing policies before changes are pushed. A useful tool for protecting secrets!