{"name":"@turf/clean-coords","version":"6.2.0-alpha.3","keywords":["turf","gis","clean-coords"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/clean-coords@6.2.0-alpha.3","maintainers":[{"name":"mdfedderly","email":"mdfedderly@mdfedderly.com"},{"name":"rowanwins","email":"rowanwins@yahoo.com.au"},{"name":"tmcw","email":"tom@macwright.org"},{"name":"morganherlocker","email":"morgan.herlocker@gmail.com"},{"name":"tcql","email":"tim.channell@gmail.com"},{"name":"deniscarriere","email":"carriere.denis@gmail.com"}],"contributors":[{"name":"Stefano Borghi","email":"@stebogit"}],"homepage":"https://github.com/Turfjs/turf","bugs":{"url":"https://github.com/Turfjs/turf/issues"},"dist":{"shasum":"6a5bde8f5340202b58e065ac12c7e5698544052b","tarball":"http://registry-npm.ywwl.com/@turf/clean-coords/download/@turf/clean-coords-6.2.0-alpha.3.tgz","fileCount":7,"integrity":"sha512-dzfGxlQRYr9sSe/EktoyJ9S3iBdz3SXXiQUqPfNmNB5JHAeaGngyPPmE6nMSw7/z5dKly3pDgfwL+u2Wrgn1rA==","signatures":[{"sig":"MEUCIATytbuNST5hkKU9T+K3oCHdh4u22t/muDmGmQHZSx8qAiEAli6sl1+porELZ7J7FIrSwh7Q+wvjI7X0ofjcR4/aW8Y=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16548,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf0o1XCRA9TVsSAnZWagAAT70P+gOUxltySrPswn3CtsOU\nxbwWpRjp7s7GJuRuvp4bGOhn7twvAzPgd/elQPS7WIAl720XPsuxIgtmQmPA\nu9liAQC6mbQjK/cJR86UtCPGUasKDuIjogssKUTqZZXEBJUUQ6eY/f3lTvcz\nywtSXRzzjpOuYRjQXAKakuKuBj/3eS9x/Xz1BU6kkdSOFv/ZW9zUvP5n5Twr\n/JsYlMFyJSXbA9MA9vFLmDSTbklW9DurrUerprTSuLFJozPEj1GEKb5M4R53\n66pvJc/H7a5N0lo43HatzQBgjHbLq9DiOFMKU7lsRkPDZZOHgpNlP/iItBZ7\nugTHCOw7eC/h1GCnJ1AuCfZintITxFdxZrDm9r4nfyH91AyFlA+Z9ykRDbpZ\nWOHPt7bJBqkSPkwIL6xZTx5oZRTnr3CZ9O0vpQgPKp0JAXCQv+LRhXIuosJs\n4bGrpUEglzaJdWTnK3cvQdXOfrenvKVXRcaLouiDlN0H8QWYxIkQZWA8EMTK\nOhwHzJ8fiIAZIa0cYNA+OkTkD/GbvC2Bq3cwsoMmBNG2KiBTQpvEmI+RH1fY\nlhj5q7cJhwqAJ9nC67dbbD6K6rODA47oOHR0y/jIysWm82vVO4ifv6v/8w4Q\nhvhXf4AbvifYWBO4SKZUS2VT4xCOFnn8hMwMqTwMXagMsX65q8SbU3ircm8t\nSs1h\r\n=Px5+\r\n-----END PGP SIGNATURE-----\r\n","size":4130,"noattachment":false,"key":"/@turf/clean-coords/-/@turf/clean-coords-6.2.0-alpha.3.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","exports":{"import":"./dist/es/index.js","require":"./dist/js/index.js"},"gitHead":"dce9edfc705352e8cb9e0083c9330ba0e8d77409","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 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.3","@turf/invariant":"^6.2.0-alpha.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"tape":"*","tslint":"*","ts-node":"*","benchmark":"*","typescript":"*","@types/tape":"*","npm-run-all":"*","@turf/truncate":"^6.2.0-alpha.3","load-json-file":"*","write-json-file":"*"},"_npmOperationalInternal":{"tmp":"tmp/clean-coords_6.2.0-alpha.3_1607634262590_0.011188713265981809","host":"s3://npm-registry-packages"},"publish_time":1607634262820,"_cnpm_publish_time":1607634262820,"dist-tags":{"latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}