# powerlifting-formulas

> Powerlifting Formulas Calculator (Wilks, WilksV2, Dots, IPF, Reshel and Glossbrenner)

Latest version **0.2.3** (published 2023-11-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install powerlifting-formulas
pnpm add powerlifting-formulas
yarn add powerlifting-formulas
bun add powerlifting-formulas
```

## 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.2.3 |
| Published | 2023-11-27 |
| First published | 2023-11-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=14.17 |
| Dependencies | 0 |
| Unpacked size | 37.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Marantesss |
| Maintainers | marantesss |
| Keywords | powerlifting, calculator, ipf, wilks, dots, Reshel, Glossbrenner |

## Links

- npm: https://www.npmjs.com/package/powerlifting-formulas
- Repository: https://github.com/Marantesss/powerlifting-formulas
- Homepage: https://github.com/Marantesss/powerlifting-formulas#readme
- Issues: https://github.com/Marantesss/powerlifting-formulas/issues
- npm.io page: https://npm.io/package/powerlifting-formulas

## Recent versions

- 0.2.3 (latest) — 2023-11-27
- 0.2.2 — 2023-11-27
- 0.2.1 — 2023-11-27
- 0.2.0 — 2023-11-27
- 0.0.1 — 2023-11-27

## README

# Powerlifting Formulas

Check [this article](https://www.taylorsstrength.co.uk/powerlifting-formulas-is-wilks-best-and-what-are-the-alternatives/) to learn more about formulas.

Formulas were heavily inspired on [OpenPowerlifting Coefficients Crate](https://github.com/sstangl/openpowerlifting/tree/main/crates/coefficients/src)

## Getting started

Install this package with you favorite package manager

```bash
npm install powerlifting-formulas
yarn add powerlifting-formulas
pnpm install powerlifting-formulas
```

Then use it like so:

```ts
import { wilks } from 'powerlifting-formulas'

// calculate wilks for 82.5kg male lifer with 680kg lifted
wilks(82.5, 680, 'male') // default is kg
// calculate wilks for 120lbs female lifer with 425lbs lifted
wilks(120, 425, 'female', 'lb')
```

## Formulas

All formulas have the same signature:

```ts
export type Formula = (weight: number, total: number, gender: 'male' | 'female', mass?: 'kg' | 'lb') => number
```

### Wilks before 2020

```ts
import { wilks } from 'powerlifting-formulas'

wilks(82.5, 680, 'male')
wilks(120, 425, 'female', 'lb')
```

### Wilks After 2020

```ts
import { wilks2020 } from 'powerlifting-formulas'

wilks2020(82.5, 680, 'male')
wilks2020(120, 425, 'female', 'lb')
```

### DOTS

```ts
import { dots } from 'powerlifting-formulas'

dots(82.5, 680, 'male')
dots(120, 425, 'female', 'lb')
```

### Reshel

**⚠️ WARNING ⚠️** Reshel might be a bit off. At worst, it is off by about six Reshel points (0.01), affecting middleweights.

```ts
import { reshel } from 'powerlifting-formulas'

reshel(82.5, 680, 'male')
reshel(120, 425, 'female', 'lb')
```

### Glossbrenner

```ts
import { glossbrenner } from 'powerlifting-formulas'

glossbrenner(82.5, 680, 'male')
glossbrenner(120, 425, 'female', 'lb')
```

### Schwartz-Malone

```ts
import { schwartzMalone } from 'powerlifting-formulas'

schwartzMalone(82.5, 680, 'male')
schwartzMalone(120, 425, 'female', 'lb')
```

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