{"name":"@turf/envelope","version":"6.3.0","keywords":["turf","geojson","envelope","polygon","extent"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/envelope@6.3.0","homepage":"https://github.com/Turfjs/turf","bugs":{"url":"https://github.com/Turfjs/turf/issues"},"dist":{"shasum":"9a8afd4161e93b5990bb21ea68a9c55154f60ac9","tarball":"http://registry-npm.ywwl.com/@turf/envelope/download/@turf/envelope-6.3.0.tgz","fileCount":7,"integrity":"sha512-9xmDTCogXJsAO0TrARA/lniMSEtAil9HIKXHDJ5N6zlZ2K5wfRdD2zDlqkgDT3t9oSvttSP3ltBf03fjMDt6Wg==","signatures":[{"sig":"MEUCIH08LIKsQvcClRz9regFXcFh/8hAuhvhXiZAHCZOX65LAiEAum6D0ejUD/7vTFYtMwjGV+bmbCZFbvl6cNFfL71GYSQ=","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\nwsFcBAEBCAAQBQJgCEC1CRA9TVsSAnZWagAAbrkP/2GQwTjmnwQJhIxYtMPm\nZrQNUlPvvPM7MlCYROqlBnhYq5+u+K7tYPUu0cTgb6mtdu81Ak5zaKmTHmQQ\nnMz9p6LkSMW0VLPTuj0xwV18UtW1i6peuCJhn7jGVuSfoSp8xFIYmciatksP\nlbTwVtgJVaYt0i4NVVBz/YFYxP8B8/mPpIcWKxAVENGopEPsBl2WrE/LIAk5\nO5FXUqwFFWPop/1oVG6M4jQO7PfFBMEXVq5Ubo0mvFrSeyCJx5I2Cu15xUSr\n+KXX72YEqBUXx3e+v4JpPKPCpOVRRpaec8Ti1dMqtRnRb85pphfdONYhKsf5\nTVRY1mZPLjR348GTjx6aN01Acnvcyg2Pw3WRrCMv1IwYWRquXru87Abr6r5m\nHbRYj5IsT4jraimxJQn3Xzn2FRclaDdhr86Y+ix2jhP7R/zmczG2PTqfndtG\niURkpb2ywBk/2ze5jRjxWnFRSree+rNc4bWpzJKgmscwrfVnWPaDRUlIyyNA\n6U66kQIokMYp2R+/dvFvk7Mmi99TkbuXA/StDTwr/6VeTSvpT8IdRaaeb7se\nBDFz1gKQRczXgXFsZFzdrFbQgsHCUEeCfpNkQJD+1+CWpyG5ygqcqO6V8dw+\nsUczIvqlKFiGF/CmX5HbNWOecSuudeTwEsU2AQLQYznT9YTW1ZY6/neeks8d\n05uQ\r\n=XwZ5\r\n-----END PGP SIGNATURE-----\r\n","size":2560,"noattachment":false,"key":"/@turf/envelope/-/@turf/envelope-6.3.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":"57c8877e1e2d67effc2cdd23385c02b2a6615a49","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":"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.3.0","@turf/helpers":"^6.3.0","@turf/bbox-polygon":"^6.3.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tape":"*","rollup":"*","benchmark":"*","npm-run-all":"*","load-json-file":"*"},"_npmOperationalInternal":{"tmp":"tmp/envelope_6.3.0_1611153589270_0.02643103551890591","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":1611153589384,"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":1611153589384,"dist-tags":{"canary":"3.5.2-alpha.d2c36ee7","latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}