Add default unit to cssobj numeric
npm install cssobj-plugin-default-unit 
Add default unit to css numeric-like values, which have to specify an unit.
`` javascript`
npm install cssobj/cssobj-plugin-default-unit
` javascript
var cssobj_core = require('cssobj-core')
var defaultUnit = require('cssobj-plugin-default-unit')
var cssobj = cssobj_core({plugins: [ defaultUnit('px') ]})
var obj = { p: { fontSize: 12 } }
var result = cssobj(obj)
// the css: p {font-size: 12px;}
`
Get plugin function to apply, pass unit.
- Type: string
- Default: 'px'
The unit as default unit to add to numeric-like values, accordingly to Unitless List
A function can be as cssobj plugin.
` javascript
defaultUnit() // default unit is 'px'
defaultUnit('em') // default unit is 'em'
`
line-height will NOT add unit, since below:
` javascript``
p { lineHeight: 1.5 }
p { lineHeight: '22px' }
It's both valid with or w/o unit, so this plugin don't touch it.