Skip to content
convert to json, geojson via cli interface tool
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
bin
dist
lib
sample
.gitignore
README.md
index.js
package.json

README.md

json-cli

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

Install

npm install -g json-cli

Support

json

File format that support converting to json format.

  • tsv
  • csv
  • xml
  • xls
  • xlsx

geojson

File format that support converting to geojson format.

  • gpx
  • topojson
  • kml

Usage

json

For json format, you can simply enter

$ json-cli <file input> <file output>
// for example

$ json-cli ./sample/sample.csv ./dist/test.json

geojson

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

See also

License

MIT @chilijung

Something went wrong with that request. Please try again.