UNPKG

geojson-minimum-bounding-rectangle

Version:

A library to compute the Minimum Bounding Rectangle of a GeoJSON polygon

59 lines (58 loc) 1.6 kB
{ "name": "geojson-minimum-bounding-rectangle", "version": "2.0.3", "description": "A library to compute the Minimum Bounding Rectangle of a GeoJSON polygon", "main": "dist/index.js", "exports": { "import": "./dist/index.js" }, "types": "dist/index.d.ts", "scripts": { "build": "tsc", "format": "prettier --write .", "check-format": "prettier --check .", "ci": "npm run build && npm run check-format && npm run test", "test": "vitest run" }, "type": "module", "repository": { "type": "git", "url": "https://github.com/matthiasfeist/geojson-minimum-bounding-rectangle.git" }, "keywords": [ "geojson", "minimum area reactangle", "minimum bounding rectangle", "smallest surrounding rectangle", "minimum bounding box", "turf", "turfjs" ], "bugs": { "url": "https://github.com/matthiasfeist/geojson-minimum-bounding-rectangle/issues" }, "homepage": "https://github.com/matthiasfeist/geojson-minimum-bounding-rectangle", "author": "Matthias Feist <matf.de@gmail.com>", "license": "MIT", "dependencies": { "@turf/area": "^7.2.0", "@turf/bearing": "^7.2.0", "@turf/centroid": "^7.2.0", "@turf/convex": "^7.2.0", "@turf/distance": "^7.2.0", "@turf/envelope": "^7.2.0", "@turf/helpers": "^7.2.0", "@turf/meta": "^7.2.0", "@turf/transform-rotate": "^7.2.0" }, "devDependencies": { "@types/geojson": "^7946.0.16", "@types/node": "^22.15.17", "prettier": "^3.5.3", "typescript": "^5.8.3", "vitest": "^3.1.3" }, "engines": { "node": ">=18" } }