esri2geo
This is a tool to turn esri json to geojson, which should work in the browser, in a worker, and in node.
Looking for the esri toolbox? It's over at it's own repo to hopefully merge with @feomike's version
Sync Method
var geoJSON = ; // do something with geoJSON object
Async Methods
// callback for resulting data { if err console; return; // data => GeoJSON // do something with it..} ;// or;
Using From Node
You can install from npm:
npm install esri2geo --save
The use from your node app like so:
var esri2geo = ; ;
Using with Webpack 2.x
Install from npm as you would with node.
To avoid Webpack warnings about missing node modules, add this to your webpack config:
node: console: true fs: 'empty' net: 'empty' tls: 'empty' dns: 'empty' dgram: 'empty'
Using as standalone browser component
Download the esri2geo.js file, include on your page and reference it through the esri2geo namespace:
esri2geo;
Note: You can also use the other methods above.
Disclaimer: not endorsed by, or have anything to do with ESRI.