https://github.com/perkinsjr/regex-hexcolor
https://github.com/perkinsjr/regex-hexcolor
hexcolor regex regex-hex
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/perkinsjr/regex-hexcolor
- Owner: perkinsjr
- Created: 2019-04-10T00:34:56.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-03T19:24:54.000Z (almost 3 years ago)
- Last Synced: 2025-03-15T01:36:43.959Z (7 months ago)
- Topics: hexcolor, regex, regex-hex
- Language: JavaScript
- Size: 299 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://travis-ci.com/perkinsjr/regex-hexcolor)
[](https://tippin.me/@james_r_perkins)
[](https://paypal.me/jamesperkinsOSS)
[](https://www.buymeacoffee.com/Of6xAMjSK)
[](https://www.patreon.com/james_perkins)# 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](https://jamesperkins.io)