mikolalysenko

mikolalysenko/to-px

Convert any CSS unit to logical pixels (aka "px")

JavaScript
55
8
MIT License

This library converts CSS units (e.g., `em`, `vh`, `in`) to logical pixels, providing a scale factor for use in DOM-based calculations. It's designed for developers working on web projects who need to translate CSS measurements into pixel values for dynamic or programmatic purposes.

Total donated
Undistributed
Share with your subscribers:

Recipients

How the donated funds are distributed

Support the dependencies of mikolalysenko/to-px

Account's avatar
parses number and unit, '20px' into [20, 'px']
Account's avatar
Test if two floats are almost equal
Account's avatar
tap-producing test harness for node and browsers

Support the repos that depend on this repository

Top contributors

mikolalysenko's profile
mikolalysenko
8 contributions
dy's profile
dy
7 contributions

Recent events

Kivach works on the Obyte network, and therefore you can track all donations.

No events yet