json-cli

convert multipule file format to json.

json-cli

convert multipule file format to json, geojson via cli interface.

npm install -g json-cli

File format that support converting to json format.

  • tsv
  • csv
  • xml
  • xls
  • xlsx

File format that support converting to geojson format.

  • gpx
  • topojson
  • kml

For json format, you can simply enter

$ json-cli <file input> <file output>
// for example
 
$ json-cli ./sample/sample.csv ./dist/test.json

For converting to geojson format, just simply add a -g option in command.

$json-cli -g <file input> <file outpu>
// for example
 
$ json-cli ./sample/us-10m.topojson ./dist/test.geojson
  • https://github.com/DataGarage/convert-geo
  • https://github.com/DataGarage/convert-json

MIT @chilijung