{"name":"@turf/clean-coords","version":"6.2.0-alpha.0","keywords":["turf","gis","clean-coords"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/clean-coords@6.2.0-alpha.0","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":"a117e75dddba3d28110f4e0a3ec22fd823cea283","tarball":"http://registry-npm.ywwl.com/@turf/clean-coords/download/@turf/clean-coords-6.2.0-alpha.0.tgz","fileCount":6,"integrity":"sha512-ZfxYuluYWE82WwVUHOsyF1LpHT8bu0K8gAbaL1PCFRMrwMtFsMwQNZwYeMKwkA9HrZgNKCRaAtSiI1AgsP21cQ==","signatures":[{"sig":"MEUCIExde13qkDX6M4wo5RHpZqZNE3wCb9AYxnfEUTQIDSJyAiEAiOQwCrhR05Bk+W04kHR4it/WCzcd79D7exhwLTEJ+/M=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16254,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJefS4gCRA9TVsSAnZWagAAGcUQAJNWkPz97xt/iGP7UO1Y\nKEHOJ1NvQcsgVnkB4AjcFGMYJcpYX7lTNdkeCMfX9gzTZkbUW/z9WwP5lSWB\ni+W62IZ1vxEth0npEci1QhdqL2wV/X65BotHLOntcI4tYGwviEs4dza56ALC\n9LYOGSQpBnEvkp4HY5zWPi3Bt4YqMHtU9SXvnvXZBEm5qS2nEiXPKZGe1tEB\ny5+WbMylH8Gfok5o2orDhV/QkpFg4hfhtjBOzZ7jy+M4/raqq+mB2XGrVDjy\n/ppjzMiGWOICMeaMcclNJdD5z3ZBrVHmsS+LzURKJLKOBsqBETw9NFtHMNDr\n/5heboAqKQbFzr7Wl5rwi5xN5hO6lhMcUibGL4GjWY9xebVWGdjFW6OWGkar\nlxcRRTrwGolNhdyFZVWgFOMOMKmU6GV8vBdaEAKyX9Ja4023dXyEFbfF6mY/\nS4YY90e25DgYHkM4g06q2QS+FaeJ199M36ZwlECWc4pawTV6EJLo8jWvoTwi\niqw7yjGfFP15zYJO12D3FBYkD/vQsvi3BxKiCp2kVGLEt6yxNQi/9K0wcBoT\nNmviQbr6VHWhJ1+uA8a0eNoNUaQfsMhk98kLbfWo1X24HeRl8FUF/0CiJXXF\nkpeGN69WfrUl0pSmyy1Hp4Okas/CHKvfZH88NOlHD3vkyl05JIty+lDCTdBS\nYbaN\r\n=EERO\r\n-----END PGP SIGNATURE-----\r\n","size":3998,"noattachment":false,"key":"/@turf/clean-coords/-/@turf/clean-coords-6.2.0-alpha.0.tgz"},"main":"dist/js/index.js","types":"dist/js/index.d.ts","module":"dist/es/index.js","gitHead":"23b651deaa1ca6a0960d0142aea620b7cc6a076d","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.0","@turf/invariant":"^6.2.0-alpha.0"},"_hasShrinkwrap":false,"devDependencies":{"tape":"*","tslint":"*","benchmark":"*","typescript":"*","@types/tape":"*","@turf/truncate":"^6.2.0-alpha.0","load-json-file":"*","write-json-file":"*"},"_npmOperationalInternal":{"tmp":"tmp/clean-coords_6.2.0-alpha.0_1585262111932_0.7952173636918536","host":"s3://npm-registry-packages"},"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. If you find an error, edit the source file of the module in question (likely index.js or index.ts), and re-run \"yarn docs\" from the root of the turf project. -->\n\n---\n\nThis module is part of the [Turfjs project](https://turfjs.org/), an open source module collection dedicated to geographic algorithms. It is maintained in the [Turfjs/turf](https://github.com/Turfjs/turf) repository, where you can create PRs and issues.\n\n### Installation\n\nInstall this single module individually:\n\n```sh\n$ npm install @turf/clean-coords\n```\n\nOr install the all-encompassing @turf/turf module that includes all modules as functions:\n\n```sh\n$ npm install @turf/turf\n```\n","publish_time":1585262112105,"_cnpm_publish_time":1585262112105,"dist-tags":{"latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}