# @does/percent

> Calculate one part's percentage of the whole

Latest version **0.0.2** (published 2018-12-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install @does/percent
pnpm add @does/percent
yarn add @does/percent
bun add @does/percent
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2018-12-12 |
| First published | 2018-11-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 39 |
| Author | omrilotan |
| Maintainers | omrilotan |
| Keywords | percent, percentage, calculate |

## Links

- npm: https://www.npmjs.com/package/@does/percent
- Repository: https://github.com/omrilotan/mono
- Homepage: https://omrilotan.com/mono/percent/
- Issues: https://github.com/omrilotan/mono/issues
- npm.io page: https://npm.io/package/@does/percent

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 0.0.2 (latest) — 2018-12-12
- 0.0.1 — 2018-11-29
- 0.0.0 — 2018-11-29

## README

# percent [![](https://img.shields.io/npm/v/@does/percent.svg)](https://www.npmjs.com/package/@does/percent) [![](https://img.shields.io/badge/source--000000.svg?logo=github&style=social)](https://github.com/omrilotan/mono/tree/master/packages/percent)

## A round percentage of a number from the whole

```
const percent = require('@does/percent');

// percent(part, whole):

percent(150, 200) // 75
percent(200, 150) // 133
```

## Transpiled version
Environments which exclude node_modules from the transpiling pipeline should include the "browser" entry instead of "main". This exposes an ES5 commonjs module.

Also available for explicit import:
```js
const percent = require('@does/percent/dist');
```

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