{"id":19721928,"url":"https://github.com/turfjs/turf-normalize","last_synced_at":"2025-07-29T22:39:03.508Z","repository":{"id":31473499,"uuid":"35037564","full_name":"Turfjs/turf-normalize","owner":"Turfjs","description":null,"archived":false,"fork":false,"pushed_at":"2015-05-04T15:44:44.000Z","size":140,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-06-04T20:16:14.642Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/Turfjs.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":"2015-05-04T13:52:11.000Z","updated_at":"2015-05-04T15:44:39.000Z","dependencies_parsed_at":"2022-09-16T05:52:03.607Z","dependency_job_id":null,"html_url":"https://github.com/Turfjs/turf-normalize","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/Turfjs/turf-normalize","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Turfjs%2Fturf-normalize","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Turfjs%2Fturf-normalize/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Turfjs%2Fturf-normalize/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Turfjs%2Fturf-normalize/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Turfjs","download_url":"https://codeload.github.com/Turfjs/turf-normalize/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Turfjs%2Fturf-normalize/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267772851,"owners_count":24142095,"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","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-11-11T23:15:56.947Z","updated_at":"2025-07-29T22:39:03.487Z","avatar_url":"https://github.com/Turfjs.png","language":"JavaScript","readme":"# turf-normalize\n\n[![build status](https://secure.travis-ci.org/Turfjs/turf-normalize.png)](http://travis-ci.org/Turfjs/turf-normalize)\n\n[Turf](http://turfjs.org/) normalize module\n\n\n### `turf.normalize(input)`\n\nNormalizes any GeoJSON to a FeatureCollection using [geojson-normalize](https://github.com/mapbox/geojson-normalize).\n\n\n### Parameters\n\n| parameter | type    | description       |\n| --------- | ------- | ----------------- |\n| `input`   | geojson | any valid GeoJSON |\n\n\n### Example\n\n```js\nvar geometry = {\n    \"type\": \"Polygon\",\n    \"coordinates\": [[\n      [-70.603637, -33.399918],\n      [-70.614624, -33.395332],\n      [-70.639343, -33.392466],\n      [-70.659942, -33.394759],\n      [-70.683975, -33.404504],\n      [-70.697021, -33.419406],\n      [-70.701141, -33.434306],\n      [-70.700454, -33.446339],\n      [-70.694274, -33.458369],\n      [-70.682601, -33.465816],\n      [-70.668869, -33.472117],\n      [-70.646209, -33.473835],\n      [-70.624923, -33.472117],\n      [-70.609817, -33.468107],\n      [-70.595397, -33.458369],\n      [-70.587158, -33.442901],\n      [-70.587158, -33.426283],\n      [-70.590591, -33.414248],\n      [-70.594711, -33.406224],\n      [-70.603637, -33.399918]\n    ]]\n  };\n\n// wraps the geometry in a Feature and places it in a FeatureCollection\nvar normalized = turf.normalize(geometry)\n\n//=normalized\n```\n\n\n**Returns** `normalized`, a normalized FeatureCollection\n\n## Installation\n\nRequires [nodejs](http://nodejs.org/).\n\n```sh\n$ npm install turf-normalize\n```\n\n## Tests\n\n```sh\n$ npm test\n```\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fturfjs%2Fturf-normalize","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fturfjs%2Fturf-normalize","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fturfjs%2Fturf-normalize/lists"}