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

1.0.2 • Public • Published

Installation

npm install --save @types/url-regex-safe

Summary

This package contains type definitions for url-regex-safe (https://github.com/niftylettuce/url-regex-safe).

Details

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

index.d.ts

type Options = Partial<{
    exact: boolean;
    strict: boolean;
    auth: boolean;
    localhost: boolean;
    parens: boolean;
    apostrophes: boolean;
    trailingPeriod: boolean;
    ipv4: boolean;
    ipv6: boolean;
    tlds: string[];
    returnString: boolean;
}>;

declare function createUrlRegExp(options?: Options): RegExp;

export as namespace urlRegexSafe;

export = createUrlRegExp;

Additional Details

  • Last updated: Tue, 07 Nov 2023 15:11:36 GMT
  • Dependencies: none

Credits

These definitions were written by Stuart Long.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/url-regex-safe

Weekly Downloads

25,924

Version

1.0.2

License

MIT

Unpacked Size

3.38 kB

Total Files

5

Last publish

Collaborators

  • types