1.2.2 • Published 6 months ago

@types/is-github-url v1.2.2

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/is-github-url

Summary

This package contains type definitions for is-github-url (https://github.com/alferov/is-github-url).

Details

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

index.d.ts

// Type definitions for is-github-url 1.2
// Project: https://github.com/alferov/is-github-url
// Definitions by: Ivan Nikolić <https://github.com/niksy>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

interface Options {
    /**
     * Match only URLs ending with .git
     */
    strict?: boolean;
    /**
     * Match only valid GitHub repo URLs
     */
    repository?: boolean;
}
/**
 * @param url A string to be validated
 */
declare function isGithubUrl(url: string, options?: Options): boolean;

export = isGithubUrl;

Additional Details

  • Last updated: Wed, 28 Jul 2021 00:01:20 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Ivan Nikolić.

1.2.2

6 months ago

1.2.1

7 months ago

1.2.0

3 years ago