npm.io
1.1.3 • Published 2 years ago

@types/hex-color-regex

Licence
MIT
Version
1.1.3
Deps
0
Size
3 kB
Vulns
0
Weekly
0
Stars
51.4K

Installation

npm install --save @types/hex-color-regex

Summary

This package contains type definitions for hex-color-regex (https://github.com/regexps/hex-color-regex#readme).

Details

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

index.d.ts

/**
 * The best regular expression (regex) for matching hex color values from string.
 * Pass `strict: true` for strict mode
 */
declare function hexColorRegex(opts?: hexColorRegex.Options): RegExp;

declare namespace hexColorRegex {
    interface Options {
        strict?: boolean | undefined;
    }
}

export = hexColorRegex;

Additional Details

  • Last updated: Tue, 07 Nov 2023 0337 GMT
  • Dependencies: none

Credits

These definitions were written by Piotr Błażejewicz.