Calculates extent/bbox for a given valid geojson object.
npm install geojson-bbox```
npm install geojson-bbox
javascript
var bbox = require('geojson-bbox');
var feature = {
type: 'Feature',
geometry: {
type: 'LineString',
coordinates: [
[10, 40], [40, 30], [20, 20], [30, 10]
]
}
};
var extent = bbox(feature);
// extent is array
// [10, 10, 40, 40]
`developing
Once you run
`npm isntall`then for running test
`npm run test`to create build
`npm run build``