Meet npm Pro: unlimited public & private packages + package-based permissions.Learn more »

training-zone-calculator

1.0.4 • Public • Published

Cycling Power Zones Calculator

Many cyclists use power meters to measure their output on the bike these days. There are functional threshold power tests that are performed and measure an athletes average output capabilities. This FTP number is used to calculate training zones. I created this package to calculate the low and high points of each of the five training zones by inputting the rider's FTP number. For more information check: https://www.trainingpeaks.com/blog/power-training-levels/

Installation

npm

npm -i training-zone-calculator

yarn

yarn add training-zone-calculator

Usage

import { calculateZones } from 'training-zone-calculator';
 
const exampleZones1 = calculateZones(234);
// => [0, 127, 128, 174, 175, 209, 210, 244, 245, 279]
 
const exampleZones2 = calculateZones(-234);
// => null
 
const exampleZones3 = calculateZones(234.4);
// => [0, 127, 128, 174, 175, 209, 210, 244, 245, 279]

Reference

Install

npm i training-zone-calculator

DownloadsWeekly Downloads

9

Version

1.0.4

License

MIT

Unpacked Size

5.83 kB

Total Files

11

Last publish

Collaborators

  • avatar