rem-to-em-cli is a CLI tool that converts rem to em.
Get rem-to-em-cli up and running quickly!
-
Run (default base size is 16px):
or with a custom base size:
npx rem-to-em-cli 2
npx rem-to-em-cli 2 18
- Done!
This will convert the rem value to its em equivalent using a base size of 16px
by default. You can also provide a custom base size.
-
Input with default base:
2rem
-
Output:
2rem = 2em (Base: 16px)
-
Input with custom base:
2rem with Base: 18px
-
Output:
2rem = 1.78em (Base: 18px)
We welcome contributions to rem-to-em-cli! Whether it's reporting a bug, suggesting an enhancement, or submitting a pull request, your input is valued.
This project is licensed under the MIT License - see the LICENSE file for details.
For any questions, suggestions, or feedback, please contact love1ace.