Check whether a string is a hex color.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
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