geocsv

GeoJSON to CSV module

Usage no npm install needed!

<script type="module">
  import geocsv from 'https://cdn.skypack.dev/geocsv';
</script>

README

geocsv

GeoJSON to CSV module

Install

npm install geocsv

Usage

var geocsv = require('geocsv');

geocsv.createCSVStream(filename, function (err, stream) {
  stream.on('data', function (data) {
    console.log(data.toString());
  });
});

All fields from properties are mapped as a column, and geometry is converted into Well Known Text.

Contributing

Contributions welcome! Please read the contributing guidelines first.

License

MIT