colors-regex
Advanced tools
Weekly downloads
Readme
Regular expressions for rgb, rgba, hex, hexa, hsl & hsla colors
This project uses node and npm.
$ npm install colors-regex
$ # OR
$ yarn add colors-regex
const assert = require('assert')
const colorRegex = require('colors-regex')
assert(colorRegex.hex.strict.test('#000000')) // Success
assert(colorRegex.hex.strict.test('#2')) // Failure
MIT
FAQs
Regular expressions for rgb, rgba, hex, hexa, hsl & hsla colors
The npm package colors-regex receives a total of 1,012 weekly downloads. As such, colors-regex popularity was classified as popular.
We found that colors-regex demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.