An open API service indexing awesome lists of open source software.

https://github.com/perkinsjr/regex-hexcolor


https://github.com/perkinsjr/regex-hexcolor

hexcolor regex regex-hex

Last synced: 6 months ago
JSON representation

Awesome Lists containing this project

README

          

[![Build Status](https://travis-ci.com/perkinsjr/AreTheyUp.svg?branch=master)](https://travis-ci.com/perkinsjr/regex-hexcolor)
[![tippin.me](https://badgen.net/badge/%E2%9A%A1%EF%B8%8Ftippin.me/@james_r_perkins/F0918E)](https://tippin.me/@james_r_perkins)
[![Donate.Paypal](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://paypal.me/jamesperkinsOSS)
[![Donate.Coffee](https://img.shields.io/badge/Donate-BuyMeCoffee-red.svg)](https://www.buymeacoffee.com/Of6xAMjSK)
[![Donate.Patreon](https://img.shields.io/badge/Donate-Patreon-orange.svg)](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)