npm.io
1.4.2 • Published 2 years ago

@types/parse-github-repo-url

Licence
MIT
Version
1.4.2
Deps
0
Size
3 kB
Vulns
0
Weekly
0
Stars
51.4K

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 0939 GMT
  • Dependencies: none

Credits

These definitions were written by Christoph Thiede.