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 }

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    7
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    7

Package Sidebar

Install

npm i gitlab-url-parse

Weekly Downloads

7

Version

1.0.0

License

MIT

Unpacked Size

6.14 kB

Total Files

7

Last publish

Collaborators

  • herrmannplatz