Skip to content

new-branchStandardized Git branch names

A composable CLI to generate and create branch names using a pattern + transform pipeline.

Quick Example

bash
npx new-branch \
  --pattern "{type}/{title:slugify;max:25}-{id}" \
  --type feat \
  --title "Add user authentication" \
  --id PROJ-456

Output:

feat/add-user-authenticatio-PROJ-456

Install

bash
# Run without installing
npx new-branch

# Or install globally
npm install -g new-branch

Released under the MIT License.