Package Exports
- tokml
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 (tokml) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
tokml
Usage
with node/browserify
npm install --save tokmlotherwise:
wget https://raw.github.com/mapbox/tokml/master/tokml.jsas a binary:
npm install -g tokml
tokml file.geojson > file.kml
tokml < file.geojson > file.kmlExample
var kml = tokml(geojsonObject);API
tokml(geojsonObject)
Given GeoJSON data as an object, return KML data as a string of XML.
Development
Requires node.js and browserify:
To build tokml.js:
makeTo run tests:
npm install
npm test