strip-units
v0.0.1
Published
A module to strip units.
Downloads
6
Readme
strip-units
A module to strip units.
Installation
$ [sudo] npm install --save strip-units
Usage
var stripUnits = require('strip-units');
console.log(stripUnits('-0.667em')); // -0.667
API
stripUnits([value])
Type: number
or null
Returns a number without unit.
value
Type: string
Default: ''
Value with unit.
License
MIT © Cícero Pablo