Skip to content
/ pxtoem Public

Simple command-line pixel to em (and vica versa) converter.

Notifications You must be signed in to change notification settings

VxMxPx/pxtoem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

pxtoem

usage: pxtoem [-h] [-i] [-c] base

Simple command-line pixel to em (and vica versa) converter.

positional arguments: base Base numeric value (in px) which will be used for calculation

optional arguments: -h, --help show this help message and exit -i, --ignore Ignore em units -c, --copy Copy result to clipboard (require xsel to be installed)

Examples

To enter interactive mode, use:

./pxtoem.py 16

The above example will assume 16(px) to be a base value, and make all calculations based on it. In interactive mode, enter desired values, for example:

in  > 1200px
out < 75em

in  > 75em
out < 1200px

About

Simple command-line pixel to em (and vica versa) converter.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages