codeowners-utils
Utilities for working with CODEOWNERS files
Install
npm install --save codeowners-utils
API
From the generated dist/codeowners-utils.d.ts
file:
/** * An individual entry from a CODEOWNERS file */ /** * Parse a CODEOWNERS file into an array of entries (will be in reverse order * of the file). */declare /** * Standard locations to search for the CODEOWNERS file in priority order * (Note: This comes from GitHub). */declare /** * Find the path of the CODEOWNERS file from the current working directory. */declare /** * Find, load, and parse the CODEOWNERS file (if it exists) from the current * working directory. */declare /** * Match a filename against a glob pattern (while respecting .gitignore rules) */declare /** * Match a filename against CODEOWNERS entries to determine which (if any) it * matches. */declare /** * Given a set of files and CODEOWNERS entries, return the set of files which * are not matched to any CODEOWNERS entries. */declare /** * Find all of the files in a git repository which are not matched by any code * owners using a set of CODEOWNERS entries. */declare /** * Find all of the files in a git repository which are not matched by any code * owners. */declare