Gathering detailed insights and metrics for is-git-branch-name-valid
Gathering detailed insights and metrics for is-git-branch-name-valid
Gathering detailed insights and metrics for is-git-branch-name-valid
Gathering detailed insights and metrics for is-git-branch-name-valid
npm install is-git-branch-name-valid
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
2 Stars
8 Commits
1 Watchers
3 Branches
1 Contributors
Updated on May 24, 2025
Latest Version
1.0.1
Package Id
is-git-branch-name-valid@1.0.1
Unpacked Size
3.11 kB
Size
1.65 kB
File Count
4
NPM Version
6.11.3
Node Version
12.11.1
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
Check that a git branch name is well formed.
1const validBranch = require('is-git-branch-name-valid') 2 3validBranch('foo.bar') // true 4validBranch('foo-bar/baz') // true 5validBranch('foo^bar') // false 6validBranch('HEAD') // false 7validBranch('-foo') // false
validBranch(name)
Takes a string name
. Returns true if name
:
HEAD
or start with -
.With npm do:
npm install is-git-branch-name-valid
MIT © Vincent Weevers
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
Found 0/4 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-06-30
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More