mapbox / tokml

Convert GeoJSON to KML.
http://mapbox.github.io/tokml/
BSD 2-Clause "Simplified" License
185 stars 90 forks source link

pretty print of resultant kml/xml data #32

Open birdage opened 6 years ago

birdage commented 6 years ago

right now the KML data comes out completely unformatted, it would be good to have a pretty print option for the resultant KML string.

birdage commented 6 years ago

could be as easy as adding in https://github.com/vkiryukhin/pretty-data, and an option flag. Happy to make the PR if wanted....?

haoliangyu commented 4 years ago

https://www.npmjs.com/package/gtran-kml is a wrapper of the tokml library and I have added the pretty option to prettify output.