Skip to content

Adds 'px' to a number, if the argument provided is a number. Useful for dom-style module

Notifications You must be signed in to change notification settings

maxtherocket/add-px

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

add-px

Installation

npm install add-px

Usage

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

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

About

Adds 'px' to a number, if the argument provided is a number. Useful for dom-style module

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published