{"id":15761615,"url":"https://github.com/alrico88/shapes-bufferer","last_synced_at":"2025-06-26T16:09:33.030Z","repository":{"id":57357893,"uuid":"315693279","full_name":"alrico88/shapes-bufferer","owner":"alrico88","description":"Helper classes to add a buffer to a GeoJSON or BBox","archived":false,"fork":false,"pushed_at":"2022-06-03T15:41:30.000Z","size":67,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-26T16:07:31.090Z","etag":null,"topics":["bbox","buffer","geojson","shape"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/shapes-bufferer","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alrico88.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-11-24T16:40:54.000Z","updated_at":"2022-06-05T15:18:12.000Z","dependencies_parsed_at":"2022-09-26T16:33:24.781Z","dependency_job_id":null,"html_url":"https://github.com/alrico88/shapes-bufferer","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/alrico88/shapes-bufferer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alrico88%2Fshapes-bufferer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alrico88%2Fshapes-bufferer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alrico88%2Fshapes-bufferer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alrico88%2Fshapes-bufferer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alrico88","download_url":"https://codeload.github.com/alrico88/shapes-bufferer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alrico88%2Fshapes-bufferer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262099716,"owners_count":23258668,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bbox","buffer","geojson","shape"],"created_at":"2024-10-04T11:03:12.741Z","updated_at":"2025-06-26T16:09:33.001Z","avatar_url":"https://github.com/alrico88.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# shapes-bufferer\n\nApply a distance buffer to a GeoJSON, BBox, or geohash\n\n## Installation\n\nUsing npm `npm i shapes-bufferer`\n\nUsing yarn `yarn add shapes-bufferer`\n\n## Usage\n\nIn CommonJS env\n\n```javascript\nconst { bufferFeature } = require('shapes-bufferer');\n\nconst geojson = {\n  type: 'Feature',\n  geometry: {\n    type: 'Polygon',\n    coordinates: [\n      [\n        [-3.687352, 40.440563],\n        [-3.674112, 40.445444],\n        [-3.66824, 40.434788],\n        [-3.686987, 40.429722],\n        [-3.687352, 40.440563],\n      ],\n    ],\n  },\n};\n\n// Apply a 1km buffer around the GeoJSON\nconst buffered = bufferFeature(geojson, 1);\n```\n\nUsing imports\n\n```javascript\nimport { bufferBBox } from 'shapes-bufferer';\n\nbufferBBox([-3.707651, 40.423234, -3.679004, 40.437593], 1);\n```\n\n## Documentation\n\nSee [DOCS](./docs/modules.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falrico88%2Fshapes-bufferer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falrico88%2Fshapes-bufferer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falrico88%2Fshapes-bufferer/lists"}