# frem

> Fits your css rem into a pixel responsive aspect-ratio.

Latest version **1.0.0** (published 2019-10-08) · ISC license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2019-10-08 |
| First published | 2019-10-08 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Andrew McPherson |
| Maintainers | ehgoodenough |

## Links

- npm: https://www.npmjs.com/package/frem
- npm.io page: https://npm.io/package/frem

## Recent versions

- 1.0.0 (latest) — 2019-10-08

## README

# Frem #

Fits your css rem into a pixel responsive aspect-ratio.

## FAQ ##

#### Q: What does it mean for my rem to fit an aspect ratio? ####
A: If you set your aspect-ratio to 16:9 and then size a div to `16rem` by `9rem`, it'll be completely contained in the screen while also filling the screen as much as it can.

#### Q: Why not use viewport units like vw or vh? ####
A: Because viewport units don't handle fractions well, which renders gross pixel gaps everywhere. [I used this approach for years](https://gist.github.com/ehgoodenough/e85054ee7e6dc052e805448b8bec0b40) before abandoning it.

#### Q: Why would you want this?? ####
A: For web game development, mostly.

## Getting Started ##

```js
const frem = require("frem")
frem({"width": 16, "height" 9})
```

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