@types/parse-github-repo-url
TypeScript icon, indicating that this package has built-in type declarations

1.4.2 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/parse-github-repo-url

Weekly Downloads

108

Version

1.4.2

License

MIT

Unpacked Size

3.24 kB

Total Files

5

Last publish

Collaborators

  • types