-
Clone the repository:
git clone https://github.com/airRnot1106/pim.git cd pim
-
Build the binary:
cargo build --release
-
Run the tool:
./target/release/pim --help
If you have Nix
installed:
nix run . -- --help
To convert 24px
to other unit:
pim 24 px
Output:
Input: 24px
px: 24px
pt: 18pt
em: 1.5em
rem: 1.5rem
Specify a custom root font size using the -r
option:
pim 24 px -r 10
Output:
Input: 24px
px: 24px
pt: 18pt
em: 2.4em
rem: 2.4rem
Run all tests:
cargo test
pim
is licensed under the MIT License.