# empxrem

> Library for converting px to em and rem.

Latest version **0.0.14** (published 2022-02-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install empxrem
pnpm add empxrem
yarn add empxrem
bun add empxrem
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.14 |
| Published | 2022-02-05 |
| First published | 2020-12-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 25.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Alessandro MacLaine |
| Maintainers | almaclaine |
| Keywords | Px, Em, Rem, Responsive, Conversion |

## Links

- npm: https://www.npmjs.com/package/empxrem
- Repository: https://github.com/ALMaclaine/empxrem
- Issues: https://github.com/ALMaclaine/empxrem/issues
- npm.io page: https://npm.io/package/empxrem

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 0.0.14 (latest) — 2022-02-05
- 0.0.13 — 2022-02-05
- 0.0.12 — 2021-12-20
- 0.0.11 — 2021-12-19
- 0.0.9 — 2021-10-11
- 0.0.8 — 2021-10-11
- 0.0.7 — 2021-10-11
- 0.0.5 — 2021-10-10
- 0.0.4 — 2021-01-02
- 0.0.3 — 2021-01-02
- 0.0.2 — 2020-12-29
- 0.0.1 — 2020-12-29

## README

# empxrem

Library for converting px to em and rem.

## API

```ts
export function pxToRem(px: number, baseFontSize: number = 16);
```

```ts
export function pxToEm(px: number, baseFontSize: number = 16);
```

```ts
export function ensureNotPx(unit: number | string);
```

```ts
export function ensureNotPxEm(unit: number | string);
```

---
_Source: https://npm.io/package/empxrem · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
