regex-hexcolor

1.0.0 • Public • Published

Build Status tippin.me Donate.Paypal Donate.Coffee Donate.Patreon

Regex hexColor ?

Regular expression for matching a hexcolor

Install

$ npm install --save regex-hexcolor

Usage

const regexHex = require(regex-hexcolor);
const fullHex = "#FFFFFF";
const hex = "#FFF";

regexHex.test(fullHex);
regexHex.test(hex);

License

MIT © James Perkins

Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

    npm i regex-hexcolor

    Weekly Downloads

    0

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    1.72 kB

    Total Files

    3

    Last publish

    Collaborators

    • james_r_perkins