@f/css-unitless

List of unitless css properties

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
20Oct 6, 2016Jan 30, 2016Minified + gzip package size for @f/css-unitless in KB

Readme

css-unitless

Build status Git tag NPM version Code style

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

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.