parse-gym-log
Parse text-based workout log file
example
input
20.04.2018
==========
# squat
5 x 100kg
5 x 100kg
# overhead press
5 x 50kg
5 x 50kg
5 x 50kg
# bench press
3 x 5 x 100kg
output
date: '20.04.2018'exercises:exercise: 'squat'sets:reps: 5 weight: 100reps: 5 weight: 100exercise: 'overhead press'sets:reps: 5 weight: 50reps: 5 weight: 50reps: 5 weight: 50exercise: 'bench press'sets:reps: 5 weight: 100reps: 5 weight: 100reps: 5 weight: 100
usage
const parse =
cli
Using parse-gym-log
on the command-line will output the log in JSON format.
$ npm install -g parse-gym-log$ < log.txt | parse-gym-log