add-px

Adds 'px' to a number. Useful for dom-style module.

  • add-px

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
add-px
101.0.08 years ago8 years agoMinified + gzip package size for add-px in KB

Readme

add-px

Installation

npm install add-px

Usage

var addPx = require('add-px');

var number = 5;
var string = addPx(number);
// string -> '5px'