See it at https://okkays.github.io/pace
- Recognize and convert distances:
- mi, mile(s), M
- km, kilometer(s)
- ft, feet, foot
- m, meter(s)
- Including fractions:
- x/y, i.e. 1/2
- Including specifiers:
- quarter
- half
- full
- Including named race distances:
- marathon
- century
- Recognize and convert durations:
- hour(s)
- minute(s)
- second(s)
- day(s)
- week(s)
- month(s)
- Recognize and convert paces of format:
- min/km, min per km
- mph
- Convert pace to formats of:
- min/km
- mph
- Convert efforts:
- Find distance given pace and duration
- Find duration given distance and pace
- Find pace given distance and duration
It does these things in a user-friendly way, providing:
- Type-ahead hints, with tab completion.
- When a number is typed, suggest singular/plural deviations
- Live display of results.
Running tests:
ng test
Running a dev server (at http://localhost:4200):
ng serve
Deploying:
ng deploy