gitlab-url-parse

1.0.0 • Public • Published

gitlab-url-parse

npm version Build Status

Parse Gitlab urls

Install

$ npm install gitlab-url-parse

Usage

const parse = require('gitlab-url-parse')
 
console.log(parse('https://gitlab.com/herrmannplatz'))
// { user: 'herrmannplatz' }
 
console.log(parse('https://gitlab.com/herrmannplatz/gitlab-url-parse'))
// { user: 'herrmannplatz', project: 'gitlab-url-parse' }
 
console.log(parse('https://gitlab.com/herrmannplatz/gitlab-url-parse/merge_requests/1'))
// { user: 'herrmannplatz', project: 'gitlab-url-parse', mr: 1 }

Dependencies (0)

    Dev Dependencies (6)

    Package Sidebar

    Install

    npm i gitlab-url-parse

    Weekly Downloads

    8

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    6.14 kB

    Total Files

    7

    Last publish

    Collaborators

    • herrmannplatz