npm install github:user/repo#branchname
Category: Node.js & npm/yarn
npm install github:user/repo#branchname
Install from a specific branch of a GitHub repository
Installs from a specific branch of a GitHub repo — handy when you need unreleased code from a feature branch.