@gitlab/codeowners

0.1.1 • Public • Published

GitLab CodeOwners parser

A GitLab CodeOwners parser for Node.js, written in TypeScript.

It aims to implement all documented features of the format, but it's not quite there yet. Consider this alpha-quality software for now!

Installation

npm install @gitlab/codeowners

Usage

import { parse } from '@gitlab/codeowners';

const codeowners = await parse('./CODEOWNERS');

const owners = codeowners.getOwners('README.md'); // ['@user', '@group']

Versioning

This project will use semantic versioning. Particularly, note item 4:

Major version zero (0.y.z) is for initial development. Anything MAY change at any time. The public API SHOULD NOT be considered stable.

This project will reach 1.0.0 once it supports all features documented by GitLab.

TODO

This is not yet a complete implementation of a GitLab CODEOWNERS parser. Here's a non-exhaustive list of things where are not implemented/supported:

Readme

Keywords

none

Package Sidebar

Install

npm i @gitlab/codeowners

Weekly Downloads

48

Version

0.1.1

License

MIT

Unpacked Size

8.61 kB

Total Files

10

Last publish

Collaborators

  • apanchal-gitlab
  • rob.hunt-gitlab
  • gitlab-administration
  • tzallmann
  • gitlab-bot
  • leipert