# propor

> 📐 Ratio calculator on your terminal

Latest version **3.0.5** (published 2020-08-14) · MIT license · 0 weekly downloads

## Install

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

Provides the command `propor`.

## 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 | 3.0.5 |
| Published | 2020-08-14 |
| First published | 2020-07-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 6.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Rafael Morais |
| Maintainers | rafmst |

## Links

- npm: https://www.npmjs.com/package/propor
- Repository: https://github.com/rafmst/propor
- Homepage: https://github.com/rafmst/propor#readme
- Issues: https://github.com/rafmst/propor/issues
- npm.io page: https://npm.io/package/propor

## Dependencies (1)

- [yargs](https://npm.io/package/yargs.md) ^15.4.0

## Recent versions

- 3.0.5 (latest) — 2020-08-14
- 3.0.4 — 2020-08-14
- 3.0.3 — 2020-08-14
- 3.0.2 — 2020-08-14
- 3.0.1 — 2020-07-10
- 3.0.0 — 2020-07-10

## README

# 📐 propor

## Instalation

```
$ npm i -g propor
```

## Documentation

To get the ratio and the percentage between two dimensions. The first one is the the width and the second argument is the height.

```
$ propor 1600 900
```

The result for this will be the following:

> The ratio is: 16:9

> The percentage is: 56.25%

To get the opposite dimension of a ratio use the following method. When you want to get a height, send the value after the flag `--width` and then the width and height. To achieve the opposite, send the height value after the `--height` flag.

```
$ propor 1600 900 -w 16
$ propor 1600 900 --width 16
```

The result for this will be something like this:

> The proportional height is: 9

```
$ propor 1600 900 -h 9
$ propor 1600 900 --height 9
```

The result for this will be something like this:

> The proportional width is: 16

## Donation

[![Buy me a coffee](https://camo.githubusercontent.com/031fc5a134cdca5ae3460822aba371e63f794233/68747470733a2f2f7777772e6275796d6561636f666665652e636f6d2f6173736574732f696d672f637573746f6d5f696d616765732f6f72616e67655f696d672e706e67)](https://www.buymeacoffee.com/rafmrs)

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