Closed guy-keller closed 3 years ago
That's great! Thanks so much
Is it ok if I include this example to the Readme?
Go for it! It would be nice to get a mention. However, if it is too much, it is all good :D
Alright should be up now :-D
Did a little modification, I tend to like to exit early do identation is little.
Looks good; also thanks for the mention!
You might want to fix this here though - from 'error' to 'wError':
// writes the gpx to file
fs.writeFileSync(outputGpxFilePath, gpxString, (wError) => {
if (wError) {
console.error('Ooops, something went wrong while saving the GPX file, see details below.');
console.error(JSON.stringify(wError));
}
});
Hey guys,
I thought I'd contribute with a little code sample. Hope this helps someone / somehow.
filename: fit-converter.js
to run it:
requirements: a "/tmp" folder with a valid test.fit file in it.
Many thanks for the easy to use lib!