Skip to content

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

License

Notifications You must be signed in to change notification settings

mattiaerre/pace-converter

Repository files navigation

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)

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published