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
62
Supply Chain
64.7
Quality
75.1
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Love this project? Help keep it running — sponsor us today! 🚀
Total Downloads
333,671
Last Day
89
Last Week
687
Last Month
3,604
Last Year
32,320
MIT License
1 Stars
8 Commits
1 Watchers
3 Branches
1 Contributors
Updated on Nov 16, 2022
Minified
Minified + Gzipped
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
-23.9%
89
Compared to previous day
Last Week
-38%
687
Compared to previous week
Last Month
29.6%
3,604
Compared to previous month
Last Year
-80.3%
32,320
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
license file detected
Details
Reason
0 existing vulnerabilities detected
Reason
Found 0/4 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
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-02-03
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