0.1.2 • Published 4 years ago

tcxwriter v0.1.2

Weekly downloads
1
License
ISC
Repository
github
Last release
4 years ago

tcxWriter

tcxWrtier is a node module that allows you to write data in the Garmin TrainingCenterDatabase xml format (.tcx) specified by the schema here

https://www8.garmin.com/xmlschemas/TrainingCenterDatabasev2.xsd

Installation

npm install --save tcxwriter

Usage

import {addTrackPoint, writeTcx} from "tcxWriter";

const trackPoint = {
    power: 100,
    cadence: 95,
    speed: 30,
    hr: 130,
    time: new Date().toISOString()
}

addTrackPoint(trackPoint);

const result = writeTcx();

writeTcx() will return a string in the xml tcx format.

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago