Gathering detailed insights and metrics for github-codeowners
Gathering detailed insights and metrics for github-codeowners
Gathering detailed insights and metrics for github-codeowners
Gathering detailed insights and metrics for github-codeowners
npm install github-codeowners
Typescript
Module System
Min. Node Version
Node Version
NPM Version
97.9
Supply Chain
99.1
Quality
75.6
Maintenance
100
Vulnerability
100
License
TypeScript (89.85%)
JavaScript (10.15%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
30 Stars
49 Commits
17 Forks
1 Watchers
18 Branches
4 Contributors
Updated on Dec 23, 2024
Latest Version
0.2.1
Package Id
github-codeowners@0.2.1
Unpacked Size
110.40 kB
Size
23.92 kB
File Count
138
NPM Version
6.14.5
Node Version
14.4.0
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
A CLI tool for working with GitHub CODEOWNERS.
Things it does:
.gitignore
)Install via npm globally then run
1$ npm i -g github-codeowners 2$ github-codeowners --help 3Usage: github-codeowners [options] [command]
Compares every file in your current (or specified) directory against your CODEOWNERS rules and outputs the result of who owns each file.
1$ cd <your awesome project> 2$ github-codeowners audit 3README.md 4package.json 5src/cli.ts @jjmschofield 6...
Ownership stats:
1$ github-codeowners audit -s 2--- Counts --- 3Total: 24 files (1378 lines) 4Loved: 10 files (494 lines) 5Unloved: 14 files (884 lines) 6--- Owners --- 7@jjmschofield: 10 files (494 lines)
Only files in a specific directory:
1$ github-codeowners audit -r src/ 2src/cli.ts @jjmschofield 3src/commands/audit.ts @jjmschofield 4...
Only unowned files:
1$ github-codeowners audit -u 2.github/CODEOWNERS 3.gitignore
Output in JSONL:
1$ github-codeowners audit -o jsonl 2{"path":"src/commands/audit.ts","owners":["@jjmschofield"],"lines":48} 3...
Output in CSV:
1$ github-codeowners audit -o csv 2src/commands/audit.ts,@jjmschofield
Full usage information:
1$ github-codeowners audit --help 2Usage: github-codeowners audit [options] 3 4list the owners for all files 5 6Options: 7 -d, --dir <dirPath> path to VCS directory (default: "<current working directory>") 8 -c, --codeowners <filePath> path to codeowners file (default: "<dir>/.github/CODEOWNERS") 9 -o, --output <outputFormat> how to output format eg: simple, jsonl, csv (default: "simple") 10 -u, --unloved unowned files only (default: false) 11 -g, --only-git consider only files tracked by git (default: false) 12 -s, --stats output stats (default: true) 13 -r, --root <rootPath> the root path to filter files by (default: "") 14 -h, --help output usage information
Tells you who owns a given file:
1$ cd <your awesome project> 2$ github-codeowners who <file> 3<file> @some/team
Full usage:
1$ github-codeowners who --help 2Usage: github-codeowners who [options] <file> 3 4lists owners of a specific file 5 6Options: 7 -d, --dir <dirPath> path to VCS directory (default: "/Users/jjmschofield/projects/github/snyk/registry") 8 -c, --codeowners <filePath> path to codeowners file (default: "<dir>/.github/CODEOWNERS") 9 -o, --output <outputFormat> how to output format eg: simple, jsonl, csv (default: "simple") 10 -h, --help output usage information
Provides a list of files with their owners between commits (against the current version of CODEOWNERS).
Ownership of all files staged for commit:
1$ cd <your awesome project> 2$ github-codeowners git
Ownership of files existing at a specific commit:
1$ github-codeowners git <commit sha>
Ownership of files changed between two commits:
1$ github-codeowners git <commit sha> <commit sha>
Output stats:
1$ github-codeowners git -s
Full usage:
1$ github-codeowners git --help 2Usage: github-codeowners git [options] [shaA] [shaB] 3 4lists owners of files changed between commits, a commit against head or staged against head. 5 6Options: 7 -d, --dir <dirPath> path to VCS directory (default: "/Users/jjmschofield/projects/github/snyk/registry") 8 -c, --codeowners <filePath> path to codeowners file (default: "<dir>/.github/CODEOWNERS") 9 -o, --output <outputFormat> how to output format eg: simple, jsonl, csv (default: "simple") 10 -s, --stats output stats, note line counts are not available for this command (default: false) 11 -h, --help output usage information
Validates your CODEOWNERS file to find common mistakes, will throw on errors (such as malformed owners).
1$ cd <your awesome project> 2$ github-codeowners validate 3Found duplicate rules [ 'some/duplicate/rule @octocat' ] 4Found rules which did not match any files [ 'some/non-existent/path @octocat' ] 5...
Full usage information:
1$ github-codeowners validate --help 2Usage: github-codeowners validate [options] 3 4Validates a CODOWNER file and files in dir 5 6Options: 7 -d, --dir <dirPath> path to VCS directory (default: "<current working directory>") 8 -c, --codeowners <filePath> path to codeowners file (default: "<dir>/.github/CODEOWNERS") 9 -r, --root <rootPath> the root path to filter files by (default: "") 10 -h, --help output usage information
Check github-codeowners <command> --help
for support for a given command, however generally the following outputs are supported:
simple
- tab delimited - terminal friendly outputjsonl
- line separated json - useful for streaming data to another commandcsv
- csv delimited fields - useful to import into a spreadsheet tool of your choiceInspired by codeowners but implemented in Typescript with extra bells and whistles.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
Found 5/30 approved changesets -- score normalized to 1
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
license file not detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
18 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
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