Skip to content
/ ipf Public
generated from nikkiselev/pkg

Calculate relative scores in IPF powerlifting competitions.

License

Notifications You must be signed in to change notification settings

nikkiselev/ipf

Repository files navigation

IPF

npm (scoped) npm bundle size (scoped) GitHub Workflow Status Coveralls github GitHub license

Calculate relative scores in IPF powerlifting competitions.

  • Wilks
  • Wilks-2 (2020)
  • DOTS

Installation

npm i @nikkiselev/ipf

Examples

Wilks-2 (2020)

import { wilks2 } from '@nikkiselev/ipf'

// 93 kg male that lifted 700 kg in total
wilks2(93, 700, 'm')

// 61 kg female that lifted 500 kg in total
wilks2(61, 500, 'f')

// 137 lb female that lifted 882 lb in total
wilks2(137, 882, 'f', 'lb')

Wilks (before 2020)

import { wilks } from '@nikkiselev/ipf'

// 93 kg male that lifted 700 kg in total
wilks(93, 700, 'm')

// 61 kg female that lifted 500 kg in total
wilks(61, 500, 'f')

// 137 lb female that lifted 882 lb in total
wilks(137, 882, 'f', 'lb')

DOTS formula

import { dots } from '@nikkiselev/ipf'

// 93 kg male that lifted 700 kg in total
dots(93, 700, 'm')

// 61 kg female that lifted 500 kg in total
dots(61, 500, 'f')

// 137 lb female that lifted 882 lb in total
dots(137, 882, 'f', 'lb')

API

wilks, wilks2 and dots share the same interface.

wilks(bodyWeight, liftedWeight, gender, unitType)
  • bodyWeight: number
  • liftedWeight: number
  • gender: m - male, f - female
  • unitType: kg - in kilograms, lb in pounds. Optional. Default value is kg.