Package Exports
- empxrem
- empxrem/dist/index.bundle.js
- empxrem/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (empxrem) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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);