1.0.0 • Published 7 years ago

is-valid-css-value v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

is-valid-css-value Build Status

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