{"name":"@turf/bbox-polygon","version":"6.2.0-alpha.1","keywords":["turf","gis","geojson","extent","bbox"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/bbox-polygon@6.2.0-alpha.1","maintainers":[{"name":"deniscarriere","email":"carriere.denis@gmail.com"},{"name":"mdfedderly","email":"mdfedderly@mdfedderly.com"},{"name":"morganherlocker","email":"morgan.herlocker@gmail.com"},{"name":"rowanwins","email":"rowanwins@yahoo.com.au"},{"name":"tcql","email":"tim.channell@gmail.com"},{"name":"tmcw","email":"tom@macwright.org"}],"homepage":"https://github.com/Turfjs/turf","bugs":{"url":"https://github.com/Turfjs/turf/issues"},"dist":{"shasum":"b53fe860a0024b0204564a2ac17c898997629cf2","tarball":"http://registry-npm.ywwl.com/@turf/bbox-polygon/download/@turf/bbox-polygon-6.2.0-alpha.1.tgz","fileCount":6,"integrity":"sha512-p/SchKwkxPlKeLPrpnMtDaaaDbaZLI/OB9kCDEFV5PnrD9ynlXyXGPtGwLlrmJM1t9vrpg8lIMjJwxSuwOGmVw==","signatures":[{"sig":"MEQCIGZTchWTrXEWyFHqzdSRR30Eu0tOs8XjT62D8HjTF6bwAiBaQ64uhvkJdUVq47m6YZ/uRTt5uHg1wdsu4D+Aiyn/sQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7959,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJefUJPCRA9TVsSAnZWagAAjl8P/iq1i3Qm6hsY60GNaUVi\nyxma3StDdLUet3hgI0DOQkQ20IZ6n69puTPBMoKwB20LVlxLY+F8eRtylNqE\nTfSzJo7sTOnY3le5OkKeox3SDNpx8WEAKlUPt+QUEjv1//nFnqmb/m1b4Sl4\n1UcB7sUaNryzqV/3DL5lSm1eziqDgiVeB8Eh5labD/j6Mw6L7flY0yGwHEuh\nMTUU0rup7BPLUkJf3vDfWkP7DegZagcGAnnTdwlqOH1r9RePs0BRkV0h3oDx\ntu7zVGiV6RNyxNkddpMcTi1Mgvs3iuGo7r45trtnehJ+6uoMSdMCeWMm8apW\nur4SgPhEnx3u4eXRUiIF+0Nb+eOb0zCFzUL72rpV7IcWWYyVagz2fj2rl8SB\nYFOi5Hws68beys1lVxHCnOWqQ9aj/C4S/Ou1i1WhKFikbTXvI3O8OFc9N9G/\nSU6VqKNcvYY085HEheruaVTXM2FN6SFrNveLMJUSrpzTpLNPULdilmPtcN+g\n9K/+NZivQLYipQDh0F53mTJMeBt15rYG4VS3tpP1fYKIDe8iNyw/Fe/hp1a7\nOaqHlR9c62zKBwJYIiwHadmaQNLCY3wCiwvnVLRRj4rs2SNTjekmx69TI2Hl\n0YYH4EKA2VXVFeTgQj/hzyZ0FmcwL+PvB2uHPlutx1GKPD+sS6Andmb7rcNL\nVr0G\r\n=tqY/\r\n-----END PGP SIGNATURE-----\r\n","size":2854,"noattachment":false,"key":"/@turf/bbox-polygon/-/@turf/bbox-polygon-6.2.0-alpha.1.tgz"},"main":"dist/js/index.js","types":"dist/js/index.d.ts","module":"dist/es/index.js","gitHead":"fc519c045a8931c1e14eab9160a7e28391f8da02","scripts":{"docs":"node ../../scripts/generate-readmes","test":"npm-run-all prepare test:*","bench":"npm-run-all prepare bench:run","prepare":"npm-run-all prepare:*","bench:run":"node bench.js","test:tape":"node -r esm test.js","prepare:es":"tsc --outDir dist/es --module esnext --declaration false","prepare:js":"tsc"},"_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 bbox-polygon module","directories":{},"sideEffects":false,"_nodeVersion":"13.10.1","dependencies":{"@turf/helpers":"^6.2.0-alpha.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tape":"*","tslint":"*","benchmark":"*","typescript":"*","@types/tape":"*"},"_npmOperationalInternal":{"tmp":"tmp/bbox-polygon_6.2.0-alpha.1_1585267279565_0.060159578673212755","host":"s3://npm-registry-packages"},"readme":"# @turf/bbox-polygon\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n## bboxPolygon\n\nTakes a bbox and returns an equivalent [polygon][1].\n\n### Parameters\n\n*   `bbox` **[BBox][2]** extent in \\[minX, minY, maxX, maxY] order\n*   `options` **[Object][3]** Optional parameters (optional, default `{}`)\n\n    *   `options.properties` **Properties** Translate properties to Polygon (optional, default `{}`)\n    *   `options.id` **([string][4] | [number][5])** Translate Id to Polygon (optional, default `{}`)\n\n### Examples\n\n```javascript\nvar bbox = [0, 0, 10, 10];\n\nvar poly = turf.bboxPolygon(bbox);\n\n//addToMap\nvar addToMap = [poly]\n```\n\nReturns **[Feature][6]<[Polygon][7]>** a Polygon representation of the bounding box\n\n[1]: https://tools.ietf.org/html/rfc7946#section-3.1.6\n\n[2]: https://tools.ietf.org/html/rfc7946#section-5\n\n[3]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object\n\n[4]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String\n\n[5]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number\n\n[6]: https://tools.ietf.org/html/rfc7946#section-3.2\n\n[7]: https://tools.ietf.org/html/rfc7946#section-3.1.6\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/bbox-polygon\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":1585267279668,"_cnpm_publish_time":1585267279668,"dist-tags":{"canary":"3.5.2-alpha.d2c36ee7","latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}