Skip to content

ghoullier/codeowners

Repository files navigation

codeowners

Provide utilities to parse and explore codeowners

This Project rely on bun toolchain

Installation

npx jsr add @ghoullier/codeowners

Basic Usage

import { parse } from "@ghoullier/codeowners";

const codeowners = parse(`
# Core
package.json @org/team1
## Packages
packages/app1 @org/team1
packages/app2 @org/team2
[`);

/*
[
    ["package.json", ["@org/team1"]],
    ["packages/app1", ["@org/team1"]],
    ["packages/app2", ["@org/team2"]],
]
*/

How to contribute ?

See jsr.io official documentation

Install project

bun install

Run test

bun test

Build the project

bun run build