{"name":"@turf/envelope","version":"6.2.0-alpha.2","keywords":["turf","geojson","envelope","polygon","extent"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/envelope@6.2.0-alpha.2","homepage":"https://github.com/Turfjs/turf","bugs":{"url":"https://github.com/Turfjs/turf/issues"},"dist":{"shasum":"7e54278031960896ea72c79b94c95338716b4e6f","tarball":"http://registry-npm.ywwl.com/@turf/envelope/download/@turf/envelope-6.2.0-alpha.2.tgz","fileCount":7,"integrity":"sha512-wzhwuCdigb759nNGMC3COJLMJA87RzKHMFI/6lBO05tR/YvTvvrvPZj1j54PvN6mPQs6HJiP1DlC3PmCTZObSw==","signatures":[{"sig":"MEUCIQD9i0BMmST7ZymnVc7C2hmE2qQxHsUIEtTZ5Ly/+ARL9gIgFXDZZvJshU9ZgnNVpIP35ERLEMYpfO6yV1TpF5zj8hA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6774,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfDHJ1CRA9TVsSAnZWagAAvW0P/0BqZDyGmckfFXCU+kVJ\nTA4u0rbvUSO7IKdLqIKcw5iWWDUjSUvonK7JWM41pQBKIHkkMDRpWdtL6/qc\nJYIDWo78F+TYPWGm2K0vHxKb8IMt5jMIerMRlV4APN9TlLBf8WXaOahjdkVj\nNcqX3gVrdabvY7CYmu5JhPPypnvHyF+c7FOdm081y/QRfzUENlmChF93Vcnn\nThxV4V3/ZRQevpTT91FoOO19pF1+cAh74x3yQrcS3zHv7r2pO/EZ3Ld7W8DO\nv5Tbo6ij2oLSaF/Ullh97lxQzbkBJONRp7ldB8wXfvVF3Cd9uGk3jW1/uBl1\nNcot9tZ3zB4TglNjP2UUPKc8asr8Zsl7akdzKg5HH+gY+FwH55N0adnQi+a/\nub2Aou+pfR36SeC8L6YaPddGKTXEno9yWgkdOIvIKq1Am+NAkrAT/mlz+gPC\nKnke/HeIRRPkJqY5WmEwXtVQKIqs4m7jppFOyn0H1IeVrHTVMMy18Z2ZjpW6\ntitCtsBHPsq7Jqg5WF3aeB1+7le8iXUOLAE9D5RC9SMI7N1t2eGiWXAxjvP6\noRX8fLzi/pjtxMBL9q6chXXY1QjmqLl0/aUQR1iC102c37wM1UDOBREc4CaK\nhm+3uN/ZbhbsQY4InH265JGayDee/GhNG6iLvEe/EnVHCyCKS2/Gs6BnZn34\n9U3L\r\n=he+j\r\n-----END PGP SIGNATURE-----\r\n","size":2544,"noattachment":false,"key":"/@turf/envelope/-/@turf/envelope-6.2.0-alpha.2.tgz"},"main":"dist/js/index.js","types":"index.d.ts","module":"dist/es/index.js","gitHead":"23d5cb91d77e0c1e2e903a2252f525797f1d0d09","scripts":{"docs":"node ../../scripts/generate-readmes","test":"npm-run-all prepare test:*","bench":"npm-run-all prepare bench:run","prepare":"rollup -c ../../rollup.config.js","posttest":"node -r esm ../../scripts/validate-es5-dependencies.js","bench:run":"node bench.js","test:tape":"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 envelope module","directories":{},"sideEffects":false,"_nodeVersion":"13.10.1","dependencies":{"@turf/bbox":"^6.2.0-alpha.2","@turf/helpers":"^6.2.0-alpha.2","@turf/bbox-polygon":"^6.2.0-alpha.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"tape":"*","rollup":"*","benchmark":"*","npm-run-all":"*","load-json-file":"*"},"_npmOperationalInternal":{"tmp":"tmp/envelope_6.2.0-alpha.2_1594651246472_0.7275410941617266","host":"s3://npm-registry-packages"},"readme":"# @turf/envelope\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n## envelope\n\nTakes any number of features and returns a rectangular [Polygon][1] that encompasses all vertices.\n\n### Parameters\n\n*   `geojson` **[GeoJSON][2]** input features\n\n### Examples\n\n```javascript\nvar features = turf.featureCollection([\n  turf.point([-75.343, 39.984], {\"name\": \"Location A\"}),\n  turf.point([-75.833, 39.284], {\"name\": \"Location B\"}),\n  turf.point([-75.534, 39.123], {\"name\": \"Location C\"})\n]);\n\nvar enveloped = turf.envelope(features);\n\n//addToMap\nvar addToMap = [features, enveloped];\n```\n\nReturns **[Feature][3]<[Polygon][1]>** a rectangular Polygon feature that encompasses all vertices\n\n[1]: https://tools.ietf.org/html/rfc7946#section-3.1.6\n\n[2]: https://tools.ietf.org/html/rfc7946#section-3\n\n[3]: https://tools.ietf.org/html/rfc7946#section-3.2\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/envelope\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":1594651246594,"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":1594651246594,"dist-tags":{"canary":"3.5.2-alpha.d2c36ee7","latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}