https://github.com/tiaanduplessis/one-rep-max
Calculate the maximum amount of force that can be generated in one maximal contraction
https://github.com/tiaanduplessis/one-rep-max
cli maximum repetition weight
Last synced: 7 months ago
JSON representation
Calculate the maximum amount of force that can be generated in one maximal contraction
- Host: GitHub
- URL: https://github.com/tiaanduplessis/one-rep-max
- Owner: tiaanduplessis
- License: mit
- Created: 2017-01-08T13:19:16.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-06-02T22:47:52.000Z (about 7 years ago)
- Last Synced: 2025-06-15T04:15:32.443Z (12 months ago)
- Topics: cli, maximum, repetition, weight
- Language: JavaScript
- Homepage:
- Size: 130 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Calculate the maximum amount of force that can be generated in one maximal contraction
Table of Contents
Table of Contents
## Introduction
[](https://greenkeeper.io/)
This module provides [various formulas](https://en.wikipedia.org/wiki/One-repetition_maximum#Calculating_1RM) for calculating one rep maximum based on a provided weight and number of repetitions.
## Install
**Install with npm**
```sh
$ npm install one-rep-max
```
**Install with yarn**
```sh
$ yarn add one-rep-max
```
## Usage
To use, choose which formula to apply and provide an object with a weight & repetitions properties.
You can read more about the available formulas [here](https://en.wikipedia.org/wiki/One-repetition_maximum#Calculating_1RM).
```js
const oneRepMax = require('one-rep-max')
const args = {
weight: 100,
reps: 10
}
console.log(oneRepMax.epley(args)) // 133.33333333333331
console.log(oneRepMax.brzycki(args)) // 133.33333333333331
console.log(oneRepMax.mcGlothin(args)) // 134.0703628078088
console.log(oneRepMax.lombardi(args)) // 125.89254117941672
console.log(oneRepMax.oConner(args)) // 125
```
## CLI
To use as a CLI tool, Install the module globally and run in the format:
```sh
$ 1rm --method={all|epley||brzycki|mcGlothin|lombardi|oConner} --weight={quite obvious} --reps={quite obvious}
```
For example:
```sh
$ 1rm --method=all --weight=100 --reps=10
# Outputs
# epley - 133.33333333333331
# brzycki - 133.33333333333331
# mcGlothin - 134.0703628078088
# lombardi - 125.89254117941672
# oConner - 125
```
## Contributing
All Contributions are welcome! Please open up an issue if you would like to help out. :smile:
## License
Licensed under the MIT License.
Icon made by Darius Dan from www.flaticon.com is licensed by CC 3.0 BY