Skip to content

Calculate wilks score. Wilks formula is primarily used in powerlifting contests to identify the best lifter across different weight classes.

License

Notifications You must be signed in to change notification settings

devastion/wilks

Repository files navigation


Calculate wilks score. Wilks formula is primarily used in powerlifting contests to identify the best lifter across different weight classes.

🚀 Quick Start

npm i wilks
import { wilks, wilks2020 } from "wilks";

const calculateWilks = wilks({ total: 612.5, bodyweight: 56, gender: "female", unit: "kg" }); // 720.67
const calculateWilks2020 = wilks2020({ total: 612.5, bodyweight: 56, gender: "female", unit: "kg" }); // 847.27

⭐ Usage

The module currently exports "wilks" and "wilks/helpers". You can check the tests to see more examples.

wilks

import { wilks, wilks2020, dots, ipf, ipfgl, oneRepMax } from "wilks";

const input = {
  // Use total
  total: 612.5,
  // Or
  squat: 260,
  bench: 132.5,
  deadlift: 220,
  bodyweight: 56,
  gender: "female" | "male",
  unit: "kg" | "lb",
};

const calculateWilks
  = wilks({ total: 612.5, bodyweight: 56, gender: "female", unit: "kg" }); // 720.67
const calculateWilks2020
  = wilks2020({ squat: 260, bench: 132.5, deadlift: 220, bodyweight: 56, gender: "female", unit: "kg" }); // 847.27
const calculateDots
  = dots({ total: 612.5, bodyweight: 56, gender: "female", unit: "kg" }); // 709.96
// ipf(input, "clpl" | "clbp" | "eqpl" | "eqbp")
const calculateIpf
  = ipf({ total: 1350.4, bodyweight: 123.45, gender: "female", unit: "lb" }, "clpl"); // 1145.88
const calculateIpfGl
  = ipfgl({ total: 612.5, bodyweight: 56, gender: "female", unit: "kg" }, "clpl"); // 145.62
// accepts weight, reps, formula ("brzycki" | "epley" | "lander" | "lombardi" | "oconner") and round to decimal
const calculateOneRepMax = oneRepMax(100, 10, "brzycki", 0); // 133

wilks/helpers

Exports roundToDecimal(input: number, decimal: number): number and convertWeight(weight: number, unit: "kg" | "lb", decimal = 1): number.

import { roundToDecimal, convertWeight } from "wilks/helpers";

console.log(roundToDecimal(123.333, 2)); // 123.33
console.log(convertWeight(163.1, "lb")); // 74
console.log(convertWeight(163.1, "lb", 2)); // 73.98

📍 Roadmap

  • Wilks Formula 2020 Edition
  • Dots Calculator
  • IPF GL Points Calculator
  • One Rep Max Calculator

About

Calculate wilks score. Wilks formula is primarily used in powerlifting contests to identify the best lifter across different weight classes.

Resources

License

Stars

Watchers

Forks

Packages

No packages published