Skip to content

Latest commit

 

History

History
39 lines (26 loc) · 1.06 KB

Readme.md

File metadata and controls

39 lines (26 loc) · 1.06 KB

NPM version Build Status Dependency Status

@furkot/import-gpx

Import GPX for Furkot

Install

$ npm install --save @furkot/import-gpx

Usage

Use as a transform stream: pipe network responses, files etc. and listen on data event.

const furkotImportGpx = require('@furkot/import-gpx');
const { body } = await fetch('https://example.com/my.gpx');
const from = body.pipeThrough(new TextDecoderStream());
const trip = await furkotImportGpx(from);

console.log(trip);

License

MIT © Damian Krzeminski