
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
copy-branch
Advanced tools
Just run npx copy-branch to copy your current Git branch name to your clipboard.
npx copy-branch
Branch name "release/rc-5.4.1" copied to clipboard!
Because it's easier. Compare yourself:
git branch --show-current | pbcopy for macOS,git branch --show-current | xclip -selection clipboard on Linux,git branch --show-current | clip for Windows, orgit branch and manually copying it.Not needed! Use it directly with npx: npx copy-branch
Want to install it locally? Sure: npm install -g copy-branch
Want to see what's happening under the hood?
npx copy-branch --verbose
[INFO] Operating System detected: darwin
[INFO] Found Git in PATH: /usr/local/bin/git
[INFO] Executing git command: /usr/local/bin/git rev-parse --git-dir
[INFO] Confirmed: Current directory is a Git repository
[INFO] Executing git command: /usr/local/bin/git rev-parse --abbrev-ref HEAD
[INFO] Current branch detected: feature/cool-stuff
Branch name "feature/cool-stuff" copied to clipboard!
Pull Requests are highly welcome.
git checkout -b feature/amazing-thinggit add -Agit commit -m "Add amazing thing"git push origin feature/amazing-thingnpx copy-branch in this step... 😉⌚ Built to save time
📜 MIT License
⭐ Star if you find this useful!
📦 npm: copy-branch (https://www.npmjs.com/package/copy-branch)
🐛 Issues: Report a bug (https://github.com/lukas-niessen/copy-branch/issues)
FAQs
Copy current Git branch name to clipboard
We found that copy-branch demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.