Unitless CSS Property
Provides a simple helper to check for unitless CSS property names. It also checks for prefixed and hyphenated property names.
Installation
npm i --save unitless-css-property
Usage
import isUnitlessCSSProperty from 'unitless-css-property'
isUnitlessCSSProperty('lineHeight')
isUnitlessCSSProperty('WebkitFlex')
isUnitlessCSSProperty('line-height')
isUnitlessCSSProperty('-webkit-flex')
isUnitlessCSSProperty('width')
License
Licensed under the MIT License.
Created with ♥ by @rofrischmann.