Skip to content

devastion/wilks

Repository files navigation

Wilks

Calculate wilks coefficient. This library includes the old version and the new 2020 version of wilks formula.

Usage

npm i wilks

import { calculateWilksPoints } from "wilks";

const wilksPoints = calculateWilksPoints(
  gender,
  bodyWeight,
  total,
  unitType,
  isNewVersion,
);
  • gender - "m" for male and "f" for female
  • bodyWeight (number)
  • total (number)
  • unit - "metric" for kgs and "imperial" for lbs
  • updatedVersion - false to use old wilks formula and new to use 2020 version

About

Calculate wilks coefficient. This library includes the old version and the new 2020 version of wilks formula.

Resources

License

Stars

Watchers

Forks

Packages

No packages published