Provide utilities to parse and explore codeowners
This Project rely on bun toolchain
npx jsr add @ghoullier/codeowners
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"]],
]
*/
See jsr.io official documentation
bun install
bun test
bun run build