gitly
Version:
An API to download and/or extract git repositories
18 lines (17 loc) • 440 B
TypeScript
import type GitlyOptions from '../interfaces/options';
import type URLInfo from '../interfaces/url';
/**
* Parses a url and returns the metadata
*
* @example
* ```markdown
* 1. owner/repo
* 2. owner/repo#tag
* 3. https://host.com/owner/repo
* 4. host.com/owner/repo
* 5. host.com/owner/repo#tag
* 6. host:owner/repo
* 7. host:owner/repo#tag
* ```
*/
export default function parse(url: string, options?: GitlyOptions): URLInfo;