Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Loosely check whether a string is an HSL(A) color string.
JavaScript CSS
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
test
.gitignore
History.md
Makefile
Readme.md
component.json
index.js
package.json

Readme.md

is-hsl-color

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

Installation

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

API

isHslColor(string)

Loosely checks whether a string is an HSL(A) color string. Loose in that it doesn't cap percentages to 100%, which CSS doesn't care about either.

License

MIT

Something went wrong with that request. Please try again.