Neodymium Plated Magnet

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

    1.5.1 • Public • Published

    Installation

    npm install --save @types/github-url-from-git

    Summary

    This package contains type definitions for node-github-url-from-git (https://github.com/tj/node-github-url-from-git).

    Details

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

    index.d.ts

    // Type definitions for node-github-url-from-git 1.5
    // Project: https://github.com/tj/node-github-url-from-git
    // Definitions by: Christian Murphy <https://github.com/ChristianMurphy>
    // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
    // TypeScript Version: 2.0
    
    declare namespace githubUrlFromGit {
        interface githubUrlFromGitOptions {
            /**
             * additional URLs that should be treated as GitHub repos
             */
            extraBaseUrls?: string[] | undefined;
        }
    
        /**
         * Create a regular expression to parse GitHub URLs
         *
         * @param opts options for regular expression generator
         */
        function re(opts?: githubUrlFromGitOptions): RegExp;
    }
    
    /**
     * Normalize Git URLs into GitHub URLs
     *
     * @param url Git URL to process
     * @param opts options for URL parser
     * @returns GitHub URL
     */
    declare function githubUrlFromGit(url: string, opts?: githubUrlFromGit.githubUrlFromGitOptions): string;
    
    export = githubUrlFromGit;

    Additional Details

    • Last updated: Thu, 08 Jul 2021 12:02:10 GMT
    • Dependencies: none
    • Global values: none

    Credits

    These definitions were written by Christian Murphy.

    Keywords

    none

    Install

    npm i @types/github-url-from-git

    DownloadsWeekly Downloads

    1,329

    Version

    1.5.1

    License

    MIT

    Unpacked Size

    4.64 kB

    Total Files

    4

    Last publish

    Collaborators

    • types