@types/git-url-parse
TypeScript definitions for git-url-parse
Last updated 5 years ago by types .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install @types/git-url-parse 
SYNC missed versions from official npm registry.

Installation

npm install --save @types/git-url-parse

Summary

This package contains type definitions for git-url-parse (https://github.com/IonicaBizau/git-url-parse).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/git-url-parse.

index.d.ts

// Type definitions for git-url-parse 9.0
// Project: https://github.com/IonicaBizau/git-url-parse
// Definitions by: Klaus Meinhardt <https://github.com/ajafff>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

declare namespace gitUrlParse {
    interface GitUrl {
        /** An array with the url protocols (usually it has one element). */
        protocols: string[];
        port: number | null;
        /** The url domain (including subdomains). */
        resource: string;
        /** The authentication user (usually for ssh urls). */
        user: string;
        pathname: string;
        hash: string;
        search: string;
        href: string;
        protocol: string;
        /** The oauth token (could appear in the https urls). */
        token: string;
        /** The Git provider (e.g. `"github.com"`). */
        source: string;
        /** The repository owner. */
        owner: string;
        /** The repository name. */
        name: string;
        /** The repository ref (e.g., "master" or "dev"). */
        ref: string;
        /** A filepath relative to the repository root. */
        filepath: string;
        /** The type of filepath in the url ("blob" or "tree"). */
        filepathtype: string;
        /** The owner and name values in the `owner/name` format. */
        full_name: string;
        /** The organization the owner belongs to. This is CloudForge specific. */
        organization: string;
        /** Whether to add the `.git` suffix or not. */
        git_suffix?: boolean | undefined;
        toString(type?: string): string;
    }

    function stringify(url: GitUrl, type?: string): string;
}

declare function gitUrlParse(url: string): gitUrlParse.GitUrl;

export = gitUrlParse;

Additional Details

  • Last updated: Tue, 06 Jul 2021 20:33:04 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Klaus Meinhardt.

Current Tags

  • 9.0.1                                ...           latest (5 years ago)
  • 9.0.0                                ...           ts2.0 (8 years ago)
  • 9.0.0                                ...           ts2.1 (8 years ago)
  • 9.0.0                                ...           ts2.2 (8 years ago)
  • 9.0.0                                ...           ts2.3 (8 years ago)
  • 9.0.0                                ...           ts2.4 (8 years ago)
  • 9.0.0                                ...           ts2.5 (8 years ago)
  • 9.0.0                                ...           ts2.6 (8 years ago)
  • 9.0.0                                ...           ts2.7 (8 years ago)
  • 9.0.0                                ...           ts2.8 (8 years ago)
  • 9.0.0                                ...           ts2.9 (8 years ago)
  • 9.0.0                                ...           ts3.0 (8 years ago)
  • 9.0.0                                ...           ts3.1 (8 years ago)
  • 9.0.0                                ...           ts3.2 (8 years ago)
  • 9.0.0                                ...           ts3.3 (8 years ago)
  • 9.0.0                                ...           ts3.4 (8 years ago)
  • 9.0.0                                ...           ts3.5 (8 years ago)
  • 9.0.1                                ...           ts3.6 (5 years ago)
  • 9.0.1                                ...           ts3.7 (5 years ago)
  • 9.0.1                                ...           ts3.8 (5 years ago)
  • 9.0.1                                ...           ts3.9 (5 years ago)
  • 9.0.1                                ...           ts4.0 (5 years ago)
  • 9.0.1                                ...           ts4.1 (5 years ago)
  • 9.0.1                                ...           ts4.2 (5 years ago)
  • 9.0.1                                ...           ts4.3 (5 years ago)
  • 9.0.1                                ...           ts4.4 (5 years ago)
  • 9.0.1                                ...           ts4.5 (5 years ago)
  • 9.0.1                                ...           ts4.6 (5 years ago)
  • 9.0.1                                ...           ts4.7 (5 years ago)
  • 9.0.1                                ...           ts4.8 (5 years ago)
  • 9.0.1                                ...           ts4.9 (5 years ago)
  • 9.0.1                                ...           ts5.0 (5 years ago)
  • 9.0.1                                ...           ts5.1 (5 years ago)
  • 9.0.1                                ...           ts5.2 (5 years ago)
  • 9.0.1                                ...           ts5.3 (5 years ago)

2 Versions

  • 9.0.1                                ...           5 years ago
  • 9.0.0                                ...           8 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |