
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
BranchGen is a command-line tool designed to simplify the process of creating git branches with standardized naming conventions. This tool is highly configurable, ensuring it meets the diverse requirements of teams and workflows.
BranchGen is a command-line tool designed to simplify the process of creating git branches with standardized naming conventions. This tool is highly configurable, ensuring it meets the diverse requirements of teams and workflows.
feature
, bugfix
, hotfix
for branch types.npm install -g branch-gen
Manually creating branches often leads to inconsistent naming, which can confuse teams and complicate workflows. For example:
Problem Case:
feature-add_login
bugfix/login_bug
hotfix/criticalFix
These variations cause confusion and make it difficult to search, manage, and enforce naming conventions across the repository.
How BranchGen Helps:
feature/PROJ-123-add-login
).PROJ-123
).BranchGen uses a configuration file named branchgen-config.json
to customize its behavior. If the file is not found, default settings are applied.
{
"prefixes": ["feature", "bugfix", "hotfix"],
"separator": "/",
"maxBranchNameLength": 15,
"ticketPattern": "^[A-Z]+-[0-9]+$",
"defaultSourceBranch": "main",
"branchNameSeparator": "-",
"useAutomatedVersioning": true,
"requireTicket": false,
"requireBranchName": true
}
feature
, bugfix
).PROJ-123
).npx branch-gen
Run the script and follow the prompts to generate a branch name and create the branch.
feature
).PROJ-123
).add new feature
).useAutomatedVersioning
is enabled, BranchGen appends version numbers (e.g., feature/PROJ-123-add-new-feature-1
).useAutomatedVersioning
is disabled, you are prompted to retry with a different branch name.Contributions are welcome! Feel free to submit issues or pull requests.
This project is licensed under the MIT License. See the LICENSE file for details.
FAQs
BranchGen is a command-line tool designed to simplify the process of creating git branches with standardized naming conventions. This tool is highly configurable, ensuring it meets the diverse requirements of teams and workflows.
The npm package branch-gen receives a total of 2 weekly downloads. As such, branch-gen popularity was classified as not popular.
We found that branch-gen demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.