web-units-conversify – npm


web-units-conversify

1.1.2 • Public • Published


Version


License: MIT

Javascript library for converting pixels, viewports and REM units!

Install

yarn add web-units-conversify
npm install web-units-conversify

Author

👤joao alberto cambauva

Show your support

Give a ⭐️ if this project helped you!

How to use the package:


import { pixelsToREM, remToPixels, remToVH, remToVW, vhToREM, vwToREM, pixelsToVH, pixelsToVW, vhToPixels, vwToPixels, } from "web-units-conversify";

console.log(remToPixels(10) + "px"); console.log(pixelsToREM(1024) + "rem"); console.log(remToVH(12) + "vh"); console.log(vwToREM(15) + "em"); // can be EM or REM units //etc...

#ENJOY! =)

#https://github.com/joaocambauva/web-units-conversify

Keywords

none

Install

npm i web-units-conversify

Collaborators

  • joaoalbertocsjunior



Source link

Latest articles

Related articles

Leave a reply

Please enter your comment!
Please enter your name here