$ cnpm install @types/hex-color-regex
npm install --save @types/hex-color-regex
This package contains type definitions for hex-color-regex (https://github.com/regexps/hex-color-regex#readme).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/hex-color-regex.
// Type definitions for hex-color-regex 1.1
// Project: https://github.com/regexps/hex-color-regex#readme
// Definitions by: Piotr Błażejewicz <https://github.com/peterblazejewicz>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/**
* 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;
These definitions were written by Piotr Błażejewicz.
Copyright 2013 - present © cnpmjs.org | Home |