An easy way to get or replace properties of GeoJSON features.
$ npm install geojson-properties
const geo = require('geojson-properties');
geo.getProperties(someGeoJSON);
//=> [{id: "01", value: "blue"}, {id: "02", value: "red"}]
Type: GeoJSON
Must be a FeatureCollection.
Type: GeoJSON
Must be a FeatureCollection.
Type: array
An array of properties (Objects).
Type: string
A key value used to merge both data and GeoJSON.
MIT © Guilherme Serradilha