Package Exports
- @furkot/import-kml
- @furkot/import-kml/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@furkot/import-kml) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@furkot/import-kml
Import KML files into Furkot road trip planner.
Install
$ npm install --save furkot-import-kmlUsage
Use with a web transform stream: pipe network responses, files etc.
import furkotImportKml from '@furkot/import-kml';
const { body } = await fetch('https://example.com/my.kml');
const from = body.pipeThrough(new TextDecoderStream());
const trip = await furkotImportKml(from);
console.log(trip);License
MIT © Damian Krzeminski