Check whether a string is a hex color.
JavaScript CSS
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
.gitignore
History.md
Makefile
Readme.md
component.json
index.js
package.json

Readme.md

is-hex-color

Check whether a string is a hex color.

Installation

$ component install segmentio/is-hex-color
$ npm install is-hex-color

API

isHexColor(string)

Checks whether a string is a hex color.

License

MIT