empxrem
TypeScript icon, indicating that this package has built-in type declarations

0.0.14 • Public • Published

empxrem

Library for converting px to em and rem.

API

export function pxToRem(px: number, baseFontSize: number = 16);
export function pxToEm(px: number, baseFontSize: number = 16);
export function ensureNotPx(unit: number | string);
export function ensureNotPxEm(unit: number | string);

/empxrem/

    Package Sidebar

    Install

    npm i empxrem

    Weekly Downloads

    9

    Version

    0.0.14

    License

    MIT

    Unpacked Size

    26.4 kB

    Total Files

    16

    Last publish

    Collaborators

    • almaclaine