{"name":"@turf/length","version":"6.3.0","keywords":["turf","linestring","length","distance","units","gis"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/length@6.3.0","contributors":[{"name":"Denis Carriere","email":"@DenisCarriere"},{"name":"Tom MacWright","email":"@tmcw"}],"homepage":"https://github.com/Turfjs/turf","bugs":{"url":"https://github.com/Turfjs/turf/issues"},"dist":{"shasum":"7d6b61bf870d6f056eb34ec7a787ce49f7dbe292","tarball":"http://registry-npm.ywwl.com/@turf/length/download/@turf/length-6.3.0.tgz","fileCount":7,"integrity":"sha512-91MHtigpV7mbrMW3xyaPVtLWQU3p487t3YHU4vdxih03p+dFI512dX/FtWbd9LNgrtBt4PM1uo1WmafGvfStKA==","signatures":[{"sig":"MEYCIQCGnmkQj7v4UJElZVWqjffAm6qChue3jLupAl/Xq/qnMwIhAKlf9ZS9hG6C7ePjbFfGxauIY9IzNkXsGRdDExRGrBJX","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8015,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgCECeCRA9TVsSAnZWagAA/AIP/AzA2ucg+bLz916ye9iz\nUQXSrh97A8kPT2MAe3VYlCb4k3aUkOS1IF1hIb1eSpgncZN+xia6bYnCVm3c\nT94MsZUDkQAf/fgs34fv2bgG16jXpvNK/g+LylS/9W2Ry7bLZHhDCREJT31d\nWn2X078A2pgPOW/zqxnTkEFfj9dCjBSuSD0Fyd3om9SRl8ZkHTlcvxwJBFAl\nARgpBcTKS+xEA3bo4b977MMv+hPQHxZcjPGSKq7I4CNOI1n6f9xkcHOvM0+G\nJribHfFIo/USaRxf3pOm3XxvhJLyFMNib+EITs/E6JXuNuigP34MiOP8Tkij\nCQE/pTCPNOiV+PV6xx/Tm7sP2bh0YQGBW+pYL7Hum/xzbGa4+4Y6fcKGREM9\nYHoiLl5ipgoevXtUH5Sr/0fNc+qlI3gcjlUJDISHglOPMndWKUKRl33r3Jua\ncz1nKOHL5CoHZOZ2NP38aTZvZTfh8/SmFXGnK9zYNGO2Sj0OqbPb8Tf2JzQB\nElmTx26MgridRQoVBnfNJ6rgeQBup6D4RlRVK4fLW/8mjizgRUPkXNvMeQq1\nwBUn+mNKQPqe//IAVhc2asAhL8MRDhBAI70RimLYG5uWttT4FPEDODhIAli0\n8l8hh4uEnjoBI/Ea2+mMQyuQ37f3G7/t7IPszkW+SUMTG5zh61bM3mc+/rqp\ntums\r\n=4GnA\r\n-----END PGP SIGNATURE-----\r\n","size":3074,"noattachment":false,"key":"/@turf/length/-/@turf/length-6.3.0.tgz"},"main":"dist/js/index.js","types":"dist/js/index.d.ts","module":"dist/es/index.js","exports":{".":{"import":"./dist/es/index.js","require":"./dist/js/index.js"},"./package.json":"./package.json"},"gitHead":"57c8877e1e2d67effc2cdd23385c02b2a6615a49","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"},"_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 length module","directories":{},"sideEffects":false,"_nodeVersion":"13.10.1","dependencies":{"@turf/meta":"^6.3.0","@turf/helpers":"^6.3.0","@turf/distance":"^6.3.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tape":"*","tslint":"*","ts-node":"*","benchmark":"*","typescript":"*","@types/tape":"*","npm-run-all":"*","load-json-file":"*","write-json-file":"*"},"_npmOperationalInternal":{"tmp":"tmp/length_6.3.0_1611153566110_0.009667588072942657","host":"s3://npm-registry-packages"},"readme":"# @turf/length\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n## length\n\nTakes a [GeoJSON][1] and measures its length in the specified units, [(Multi)Point][2]'s distance are ignored.\n\n### Parameters\n\n*   `geojson` **[Feature][3]<([LineString][4] | [MultiLineString][5])>** GeoJSON to measure\n*   `options` **[Object][6]** Optional parameters (optional, default `{}`)\n\n    *   `options.units` **Units** Supports all valid Turf [Units][7]. (optional, default `kilometers`)\n\n### Examples\n\n```javascript\nvar line = turf.lineString([[115, -32], [131, -22], [143, -25], [150, -34]]);\nvar length = turf.length(line, {units: 'miles'});\n\n//addToMap\nvar addToMap = [line];\nline.properties.distance = length;\n```\n\nReturns **[number][8]** length of GeoJSON\n\n[1]: https://tools.ietf.org/html/rfc7946#section-3\n\n[2]: https://tools.ietf.org/html/rfc7946#section-3.1.2\n\n[3]: https://tools.ietf.org/html/rfc7946#section-3.2\n\n[4]: https://tools.ietf.org/html/rfc7946#section-3.1.4\n\n[5]: https://tools.ietf.org/html/rfc7946#section-3.1.5\n\n[6]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object\n\n[7]: https://turfjs.org/docs/api/types/Units\n\n[8]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number\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/length\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":1611153566256,"maintainers":[{"name":"smallsaucepan","email":"james@smallsaucepan.com"},{"name":"morgan.herlocker","email":"morganherlocker@gmail.com"},{"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"}],"_cnpm_publish_time":1611153566256,"dist-tags":{"latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}