A CLI tool to lint and validate Git branch names against configurable rules. Current stable version is 3.0.1, requiring Node.js >=18. It supports prefix whitelisting, separator enforcement, regex patterns, banned/disallowed branch names, and suggestions for common typos. Key differentiators include support for JavaScript config files (for dynamic rules), environment variable override for CI/CD, and the ability to disable prefix or separator checks entirely. Useful for pre-commit hooks (husky) or CI pipelines to enforce branch naming conventions. Last major version (2.0.0) fixed spelling of 'separator' from 'seperator' and made branch names case-sensitive. Release cadence is irregular with maintenance updates.
npm install branch-name-lintNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to import and use branch-name-lint programmatically with a config object.
Update config to use new option names 'separator' and 'msgseparatorRequiredL'.
Ensure branch names and config prefixes match case exactly.
Use import or dynamic import(). For CommonJS projects, pin to v2.1.1.
Use absolute path or ensure correct relative path from cwd.
Change to: import branchNameLint from 'branch-name-lint'
Use import or upgrade Node.js to support ES modules, or use dynamic import().
Ensure case matches between config prefixes and branch names.
No dependency data recorded yet.