Crates.io | pxrem |
lib.rs | pxrem |
version | 0.3.3 |
source | src |
created_at | 2019-06-14 02:29:04.765087 |
updated_at | 2019-08-14 18:11:52.441067 |
description | A tool to convert pixel to rem value |
homepage | https://github.com/nicwestvold/pxrem |
repository | https://github.com/nicwestvold/pxrem |
max_upload_size | |
id | 140992 |
size | 3,954 |
Easily convert pixels to rem.
# 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