Loosely check whether a string is an RGB(A) color string.
JavaScript CSS
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-rgb-color

Loosely check whether a string is an RGB(A) color string.

Installation

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

API

isRgbColor(string)

Loosely checks whether a string is an RGB(A) color string. Loose in that it doesn't cap numbers to 255, which CSS doesn't care about either.

License

MIT