Skip to content

Latest commit

 

History

History
65 lines (37 loc) · 1.56 KB

README.md

File metadata and controls

65 lines (37 loc) · 1.56 KB

pace-converter

Universal running pace converter. Minutes per kilometer, Kilometers per hour, Minutes per mile, Miles per hour.

tested with jest

How to use the Library

~ npm i -S pace-converter
const convert = require('pace-converter').convert;

const model = convert('4:50', 'minkm');

console.log('model:', JSON.stringify(model, null, 2));

How to use the CLI

~ npm i -g pace-converter
➜ ~ pace-converter-convert -p 4:40 -u minkm
{ minkm: '04:40.00', kmh: 12.857, minmi: '07:30.60', mih: 7.989 }

Convert

  • Minutes per kilometer: 'minkm'

  • Kilometers per hour: 'kmh'

  • Minutes per mile: 'minmi'

  • Miles per hour: 'mih'

Converters

converters - v1.0.1

  • Minutes per kilometer to Kilometers per hour (minkm2kmh)

  • Kilometers per hour to Minutes per kilometer (kmh2minkm)

  • Minutes per kilometer to Minutes per mile (minkm2minmi)

  • Minutes per mile to Minutes per kilometer (minmi2minkm)

  • Minutes per kilometer to Miles per hour (minkm2mih)

  • Miles per hour to Minutes per kilometer (mih2minkm)

  • Kilometers per hour to Minutes per mile (kmh2minmi)

  • Minutes per mile to Kilometers per hour (minmi2kmh)

  • Kilometers per hour to Miles per hour (kmh2mih)

  • Miles per hour to Kilometers per hour (mih2kmh)

  • Miles per hour to Minutes per mile (mih2minmi)

  • Minutes per mile to Miles per hour (minmi2mih)