1.0.0 • Published 6 years ago
regex-hexcolor v1.0.0
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
1.0.0
6 years ago