Installation
npm install --save @types/parse-github-repo-url
Summary
This package contains type definitions for parse-github-repo-url (https://github.com/repo-utils/parse-github-repo-url).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/parse-github-repo-url.
index.d.ts
/**
* Parse all the stupid ways you could write a GitHub URL in your damn `package.json`.
* @returns `version` could be `false`y, a semantic version, a commit, or a branch, etc.
*/
declare function parse(url: string): false | [user: string, repo: string, version?: string];
export = parse;
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:39 GMT
- Dependencies: none
Credits
These definitions were written by Christoph Thiede.