@f/css-unitless

List of unitless css properties

Stats

StarsIssuesVersionUpdatedCreatedSize
@f/css-unitless
201.0.25 years ago6 years agoMinified + 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.