{"name":"@turf/envelope","version":"6.4.0","keywords":["turf","geojson","envelope","polygon","extent"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/envelope@6.4.0","homepage":"https://github.com/Turfjs/turf","bugs":{"url":"https://github.com/Turfjs/turf/issues"},"dist":{"shasum":"e088667092541000c0c61c40ddd4f6f36fc77618","tarball":"http://registry-npm.ywwl.com/@turf/envelope/download/@turf/envelope-6.4.0.tgz","fileCount":7,"integrity":"sha512-kN5IgWlsJLAF+3tWo6AqdUGlwDGlvF8+wKJgXe9rf7AKwQyttZsNJ2xz+cBxGEviT/nvpDhrMxqwgAlbK3VO3Q==","signatures":[{"sig":"MEQCIBhC1NgAgd3H7Oq8J+EYLjFiT/NGJfVH98qCTIv89zwAAiA3jrNVa6cT1C+8v8iyGRzt/YKcuQzo5m1qsPolQ4Dsbw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6009,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgy06OCRA9TVsSAnZWagAATc8QAIgZP5S936JwPdCPb0WJ\n2dNRqtJjXRVTNFDm1uqF3kMv2+/crF+B8F6VbzqIVgt0Vr9MCBcxu9k+FEk3\n+s6ti2qC+/uOp7f9oGnoExYVn1mNWWGSkqmXf2x7yNCbC/KyI/6YUEM8wvet\ncbRHHajLNCqsHzF7AXCLrJxpSzRaEpR2t2Zb7EKeAkOLs5l2igXfb7EGRFA/\nWBTuSe/qErw0FSIsYvNnS2m/7P4B+Zr7x//g+3FG1FoM4+D3RwmqVeJr8M+l\nszMjg2oLzgwJv3jY91nSSZE+BLqt6WHPzEomOxrtsXhtJURJEA4GSOn04DIe\nZHapVlkmcFma982zJCCryb6pzrS0btY++XNHoMq+1srNbu+im/d9658n4qsL\nVAdxlT32BYuUv2JR8fdKScLu+1vlv5EKIIFa5GiRuENzL0mLzxOslD0UmohS\n43ORqIg1g6mz1HmJtZopTTn3LapGMDfylPWwNLZfR0Hg0n7vDrfsCBzGT3WK\nEFBAeJHqzL2q+v33lrZbe3lfFpIUI2LqNlbxk9sQplzXIb0gD5zuwjz324Ze\nWSsj/iXI0Dv19zUYV9mT50AQJ8iHjA9yLn59Npp/0J74PUXm+95skfiF41d7\nwn+LfGErMYJTWr4+K76Q4yQZOsZwn3tA76HIC7yTsrcsTzh8SnU7aILvlY0d\nO358\r\n=w3r2\r\n-----END PGP SIGNATURE-----\r\n","size":2560,"noattachment":false,"key":"/@turf/envelope/-/@turf/envelope-6.4.0.tgz"},"main":"dist/js/index.js","types":"index.d.ts","module":"dist/es/index.js","exports":{".":{"import":"./dist/es/index.js","require":"./dist/js/index.js"},"./package.json":"./package.json"},"gitHead":"1e62773cfc88c627cca8effcb5c14cfb65a905ac","scripts":{"docs":"node ../../scripts/generate-readmes","test":"npm-run-all test:*","bench":"node -r esm bench.js","build":"rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json","test:tape":"node -r esm test.js"},"_npmUser":{"name":"rowanwins","email":"rowanwins@yahoo.com.au"},"repository":{"url":"git://github.com/Turfjs/turf.git","type":"git"},"_npmVersion":"lerna/3.20.2/node@v14.14.0+x64 (darwin)","description":"turf envelope module","directories":{},"sideEffects":false,"_nodeVersion":"14.14.0","dependencies":{"@turf/bbox":"^6.4.0","@turf/helpers":"^6.4.0","@turf/bbox-polygon":"^6.4.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tape":"*","rollup":"*","benchmark":"*","npm-run-all":"*","load-json-file":"*"},"_npmOperationalInternal":{"tmp":"tmp/envelope_6.4.0_1623936654055_0.5419035433166841","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":1623936654229,"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":1623936654229,"dist-tags":{"canary":"3.5.2-alpha.d2c36ee7","latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}