Nanananananananana.. Pat Man!
    Wondering what’s next for npm?Check out our public roadmap! »

    pace-converter

    1.0.0-alpha.5 • Public • Published

    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 '5:00' -u 'minkm'
    { minkm: '5:00', kmh: 12, minmi: '08:02.76', mih: 7.457 }

    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)

    Install

    npm i pace-converter

    DownloadsWeekly Downloads

    3

    Version

    1.0.0-alpha.5

    License

    MIT

    Last publish

    Collaborators

    • avatar