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

1.2.2 • Public • Published

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

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: Tue, 07 Nov 2023 03:09:37 GMT
  • Dependencies: none

Credits

These definitions were written by Ivan Nikolić.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/is-github-url

Weekly Downloads

388

Version

1.2.2

License

MIT

Unpacked Size

3.21 kB

Total Files

5

Last publish

Collaborators

  • types