{"name":"@turf/clean-coords","version":"6.2.0-alpha.2","keywords":["turf","gis","clean-coords"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/clean-coords@6.2.0-alpha.2","maintainers":[{"name":"deniscarriere","email":"carriere.denis@gmail.com"},{"name":"mdfedderly","email":"mdfedderly@mdfedderly.com"},{"name":"morganherlocker","email":"morgan.herlocker@gmail.com"},{"name":"rowanwins","email":"rowanwins@yahoo.com.au"},{"name":"tcql","email":"tim.channell@gmail.com"},{"name":"tmcw","email":"tom@macwright.org"}],"contributors":[{"name":"Stefano Borghi","email":"@stebogit"}],"homepage":"https://github.com/Turfjs/turf","bugs":{"url":"https://github.com/Turfjs/turf/issues"},"dist":{"shasum":"2918e0968f878d767471d368db340941768775ca","tarball":"http://registry-npm.ywwl.com/@turf/clean-coords/download/@turf/clean-coords-6.2.0-alpha.2.tgz","fileCount":6,"integrity":"sha512-pz8UiIHrzSPhslh3hyk/RJ2JuHy1vTbqR1zkivpAwBKvbR+3bqxjAn017cKVE301YpZS5Y8iYGeahhfS0qE4hA==","signatures":[{"sig":"MEQCICsO85WzdzhdY66WDoYbnYf1vDat8B+3MfTzp/JbBucQAiBSg2T41XO0gbd1/g0O+nJ/yHY/W+Zv331+SAJpmggvnw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16327,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfDHI+CRA9TVsSAnZWagAALqEQAI/kbYr6M4yLZ/uLjE7f\nKIWO5YqjPLy0nIrqR6D+GECouXiX0CgHpfQhUugOvMMKrIJyT3faP6mGc4oE\nGYmGhTh1qfs8tM23BDWVhRx3NTY3xEkLV3EGdymNxD6thBPdnIwAUw3yllgc\n6vZ3yPpLjd5cRcxC5lK3EBpDNDuKV9wN0UcqhpfIA5pObkJBTe4bBNutdga8\nVZSzQXfsCDO0gnIFSBFqkm74PhIDiXGwBVCC1Lnhbab5UYQP1i1Z2ZbfJ1lt\ne2R9YA4269Nej+UI+orasBfInPxOI8IY8ONgHWeaRrCW0rvVPaDmfTfUlW3+\n9xUM9gOAzwHqXIfwKrlELkIr55JnOF0eQa4rqbsYByzZKZD3BLhHKOLyNtsR\nu62p7mcPTIi2arGnlY5fhuUiRi/TWCDmOyzMfiNSV0vXFZPGkdaYnAD5JvVh\nZ19+bNAyng19kJBHiOiXGe/K2/L65PYvv0G66M73wdI84OrAiY28Yziw+Xh3\nYmZ+uqqXftTpBj+8m+s/TkWq3Tkigenhy1kd1EBYrPsHGLmzmqKUQF2jqGiv\nyHsTN+HAEfN9ldRQyqpQ4U0O6Mr7rNC2VxyCFtOnzBPPkd2gpTRk95NwXpHb\nyz/7egmiwE/lHe6YtV1+R25u2Ykgfyiu7Rmrvt5agcb6X/JdVsrx692RPm2d\n6yg+\r\n=hHvW\r\n-----END PGP SIGNATURE-----\r\n","size":4023,"noattachment":false,"key":"/@turf/clean-coords/-/@turf/clean-coords-6.2.0-alpha.2.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    -   `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","gitHead":"23d5cb91d77e0c1e2e903a2252f525797f1d0d09","scripts":{"docs":"node ../../scripts/generate-readmes","test":"npm-run-all prepare test:*","bench":"npm-run-all prepare bench:run","prepare":"npm-run-all prepare:*","bench:run":"node bench.js","test:tape":"node -r esm test.js","prepare:es":"tsc --outDir dist/es --module esnext --declaration false","prepare:js":"tsc","test:types":"tsc --noEmit types.ts"},"_npmUser":{"name":"mdfedderly","email":"mdfedderly@mdfedderly.com"},"repository":{"url":"git://github.com/Turfjs/turf.git","type":"git"},"_npmVersion":"lerna/3.20.2/node@v13.10.1+x64 (darwin)","description":"turf clean-coords module","directories":{},"sideEffects":false,"_nodeVersion":"13.10.1","dependencies":{"@turf/helpers":"^6.2.0-alpha.2","@turf/invariant":"^6.2.0-alpha.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"tape":"*","tslint":"*","benchmark":"*","typescript":"*","@types/tape":"*","npm-run-all":"*","@turf/truncate":"^6.2.0-alpha.2","load-json-file":"*","write-json-file":"*"},"_npmOperationalInternal":{"tmp":"tmp/clean-coords_6.2.0-alpha.2_1594651198384_0.08882473297643734","host":"s3://npm-registry-packages"},"publish_time":1594651198497,"_cnpm_publish_time":1594651198497,"dist-tags":{"latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}