{"name":"@turf/envelope","version":"3.1.1","keywords":["turf","geojson","envelope","polygon","extent"],"author":{"name":"morganherlocker"},"license":"MIT","_id":"@turf/envelope@3.1.1","homepage":"https://github.com/Turfjs/turf","bugs":{"url":"https://github.com/Turfjs/turf/issues"},"dist":{"shasum":"4702ce4fbc36d429c9a809b3e209305e76a638d9","tarball":"http://registry-npm.ywwl.com/@turf/envelope/download/@turf/envelope-3.1.1.tgz","integrity":"sha512-JPfb/M5qqrWXRc5jjMZ0j4mqVLIiaQhdA43umF3CvZx46l7vsRZ9aDIUxcPUrrmLPiOfteqrFhfMH8M0xfkeOg==","signatures":[{"sig":"MEYCIQCKNUpU1ziR8y2WupucgvpqaWAnzhzKuybRF2tOx44ffAIhAKCV+Spupjo0MUmwmcL6At1oAfzvFXzUAjGHoJOfii4W","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"size":2457,"noattachment":false,"key":"/@turf/envelope/-/@turf/envelope-3.1.1.tgz"},"main":"index.js","_from":".","_shasum":"4702ce4fbc36d429c9a809b3e209305e76a638d9","scripts":{"test":"node test.js"},"_npmUser":{"name":"tmcw","email":"tom@macwright.org"},"repository":{"url":"git://github.com/Turfjs/turf.git","type":"git"},"_npmVersion":"3.10.3","description":"turf envelope module","directories":{},"_nodeVersion":"4.4.7","dependencies":{"@turf/bbox":"^3.1.1","@turf/bbox-polygon":"^3.1.1"},"devDependencies":{"tape":"^3.5.0","benchmark":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/envelope-3.1.1.tgz_1468327279727_0.7082630074582994","host":"packages-12-west.internal.npmjs.com"},"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":1468327282209,"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":1468327282209,"dist-tags":{"canary":"3.5.2-alpha.d2c36ee7","latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}