@f/css-unitless

1.0.2 • Public • Published

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

/@f/css-unitless/

    Package Sidebar

    Install

    npm i @f/css-unitless

    Weekly Downloads

    58

    Version

    1.0.2

    License

    MIT

    Last publish

    Collaborators

    • f