{"name":"@turf/clean-coords","version":"7.0.0-alpha.0","keywords":["turf","gis","clean-coords"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/clean-coords@7.0.0-alpha.0","maintainers":[{"name":"twelch","email":"tim.j.welch@gmail.com"},{"name":"jamesmilneruk","email":"jamesmilner22@hotmail.com"},{"name":"rowanwins","email":"rowanwins@yahoo.com.au"},{"name":"tmcw","email":"tom@macwright.com"},{"name":"morganherlocker","email":"morgan.herlocker@gmail.com"},{"name":"tcql","email":"tim.channell@gmail.com"},{"name":"mdfedderly","email":"mdfedderly@mdfedderly.com"}],"contributors":[{"name":"Stefano Borghi","email":"@stebogit"}],"homepage":"https://github.com/Turfjs/turf","bugs":{"url":"https://github.com/Turfjs/turf/issues"},"dist":{"shasum":"307b6e4b86900314be10d7c6715a76c6c3f8364a","tarball":"http://registry-npm.ywwl.com/@turf/clean-coords/download/@turf/clean-coords-7.0.0-alpha.0.tgz","fileCount":7,"integrity":"sha512-vXVkb3ZEKCcSvIvc0DBbwDEcph6X3JxVoTARbqhx924Ss6VVGOveeY6ZhbOHDkbnpjrDfxNYEfw86UC2bsIVPg==","signatures":[{"sig":"MEUCIGpx7iR4kJYf0Ingyy785a/jgPt7Hd5kDFkC7Jvj6Od1AiEAhzvTaHiFRhUtUKhaOcFsR4BWMr6bIEYNdVNUFClYrbU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":17154,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJja8OmACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqx/xAAhQswhZ/JTgFAWQLv1WBN7/qPJFQn+AlAkaIzHjTwyasBAE78\r\n3928MlO8kUlAdZkHAkSA9LQECYnDx9XlOJLZD4hWk7VDL0e5lIC9v/Df/Wjn\r\nsHb/S+9/rQS6bjFH5ExF0XJERC24AKkE2YqFCE3r1W7cVtwHryWqGEryyqil\r\nMqP/LLD5MuR8KcCaHXdeeLzOkPLMuuJlUJLYtPhIii6zeL7TEShn2XdyRMzq\r\nox3QdN6G1L3LV8QIUn/zylm4ZjhEPk6VPiHaGHwpEYBzn+qQaVBkzUNrZvVe\r\nE371RA6wROGtXcwJlDaXg2etnErMB1lU2B4kVBv1vRMdV0SlXw4G/ByVW+4l\r\nLNdXQrdGizuCFZe4RFtzg9LP7ZbPeOBE9gU0fflLrrmMYrHV9r13JS0+NZ7h\r\nV18uMwbG7w3wIKPjEZeCzjkQiWd00o8bdV+AtkuRLPanEETX0pzdghuX8wV+\r\n11E3LOIilNaCedF3r+qhtUrGnfu86ApntaVAnFIRfhpojc/HwJE9ulOcJQ4r\r\nIgxzZfJmXH2qjBK01nbK16ZOBNMWQQt8vjOcJlBveXkGFCoKwKZBqrDwuxGy\r\nNL4xs/kF3dsKODxh7ysvIRS5qL/UI9JBVk4uH8XEdl033VyNAjwpcONoYIYj\r\nIyu4hAhVmXAwpPe5HWgy8FSzvSp39yAZW/g=\r\n=+NR2\r\n-----END PGP SIGNATURE-----\r\n","size":4269,"noattachment":false,"key":"/@turf/clean-coords/-/@turf/clean-coords-7.0.0-alpha.0.tgz"},"main":"dist/js/index.js","types":"dist/js/index.d.ts","module":"dist/es/index.js","readme":"# @turf/clean-coords\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n## cleanCoords\n\nRemoves redundant coordinates from any GeoJSON Geometry.\n\n### Parameters\n\n*   `geojson` **([Geometry][1] | [Feature][2])** Feature or Geometry\n*   `options` **[Object][3]** Optional parameters (optional, default `{}`)\n\n    *   `options.mutate` **[boolean][4]** allows GeoJSON input to be mutated (optional, default `false`)\n\n### Examples\n\n```javascript\nvar line = turf.lineString([[0, 0], [0, 2], [0, 5], [0, 8], [0, 8], [0, 10]]);\nvar multiPoint = turf.multiPoint([[0, 0], [0, 0], [2, 2]]);\n\nturf.cleanCoords(line).geometry.coordinates;\n//= [[0, 0], [0, 10]]\n\nturf.cleanCoords(multiPoint).geometry.coordinates;\n//= [[0, 0], [2, 2]]\n```\n\nReturns **([Geometry][1] | [Feature][2])** the cleaned input Feature/Geometry\n\n[1]: https://tools.ietf.org/html/rfc7946#section-3.1\n\n[2]: https://tools.ietf.org/html/rfc7946#section-3.2\n\n[3]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object\n\n[4]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean\n\n<!-- This file is automatically generated. Please don't edit it directly:\nif you find an error, edit the source file (likely index.js), and re-run\n./scripts/generate-readmes in the turf project. -->\n\n---\n\nThis module is part of the [Turfjs project](http://turfjs.org/), an open source\nmodule collection dedicated to geographic algorithms. It is maintained in the\n[Turfjs/turf](https://github.com/Turfjs/turf) repository, where you can create\nPRs and issues.\n\n### Installation\n\nInstall this module individually:\n\n```sh\n$ npm install @turf/clean-coords\n```\n\nOr install the Turf module that includes it as a function:\n\n```sh\n$ npm install @turf/turf\n```\n","exports":{".":{"import":"./dist/es/index.js","require":"./dist/js/index.js"},"./package.json":"./package.json"},"funding":"https://opencollective.com/turf","gitHead":"0edc4c491b999e5ace770a61e1cf549f7c004189","scripts":{"docs":"node ../../scripts/generate-readmes","test":"npm-run-all test:*","bench":"ts-node bench.js","build":"npm-run-all build:*","build:es":"tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json","build:js":"tsc","test:tape":"ts-node -r esm test.js","test:types":"tsc --esModuleInterop --noEmit --strict types.ts"},"_npmUser":{"name":"mdfedderly","email":"mdfedderly@mdfedderly.com"},"repository":{"url":"git://github.com/Turfjs/turf.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v19.0.1+arm64 (darwin)","description":"turf clean-coords module","directories":{},"sideEffects":false,"_nodeVersion":"19.0.1","dependencies":{"tslib":"^2.3.0","@turf/helpers":"^7.0.0-alpha.0","@turf/invariant":"^7.0.0-alpha.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"tape":"*","tslint":"*","ts-node":"*","benchmark":"*","typescript":"*","@types/tape":"*","npm-run-all":"*","@turf/truncate":"^7.0.0-alpha.0","load-json-file":"*","write-json-file":"*"},"_npmOperationalInternal":{"tmp":"tmp/clean-coords_7.0.0-alpha.0_1668006822377_0.050822404660967546","host":"s3://npm-registry-packages"},"publish_time":1668006822487,"_cnpm_publish_time":1668006822487,"dist-tags":{"latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}