css-unitless
List of unitless css properties
Installation
$ npm install @f/css-unitless
Usage
var unitless = require('@f/css-unitless')
function defaultUnits (key, value) {
if (!unitless[key] && isNumber(value)) {
return value + 'px'
}
return value
}
License
MIT