Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pxrem

Easily convert pixels to rem.

Usage

# get the rem value, given a pixel value
> pxrem 19
1.1875

# specify the number of decimal places to return (default: 8)
> pxrem 19 -p 2
1.19

# specify the base pixel size to use (default: 16px)
> pxrem 19 -b 10
1.9

# get the pixel value for a given rem value
> pxrem 2.25 -r
36

About

CLI for converting pixel values to em

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages