1.0.0 • Published 7 years ago
is-valid-css-value v1.0.0
is-valid-css-value
Checks if a CSS property accepts a specific value
Install
$ npm install --save is-valid-css-value
Usage
import {isValidProperty, isValidPropertyValue} from 'is-valid-css-value';
isValidProperty('z-index'); // true
isValidPropertyValue('border-left-style', 'dotted'); // true
isValidPropertyValue('border-left-style', 'purple'); // false
License
MIT © Paul Molluzzo
1.0.0
7 years ago