Skip to content

segment-boneyard/is-hsl-color

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published