1.0.2 • Published 8 years ago
@f/css-unitless v1.0.2
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