pixel-number
Cast numbers to CSS pixel strings
Install
$ npm install --save pixel-number
Usage
var pixel = //=> 10px //=> 10em
API
pixel(input)
-> string
input
Required
Type: number
A number to be transformed into a pixel string. Strings are returned unchanged.
License
MIT © Ben Drucker