{"name":"@turf/bbox-polygon","version":"6.2.0-alpha.2","keywords":["turf","gis","geojson","extent","bbox"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/bbox-polygon@6.2.0-alpha.2","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":"8abbf7c31fc6cda3bc2feeb12ec30b3ff94b1861","tarball":"http://registry-npm.ywwl.com/@turf/bbox-polygon/download/@turf/bbox-polygon-6.2.0-alpha.2.tgz","fileCount":6,"integrity":"sha512-IE1uqz6F8dFbLsuDmcQ7qiM7D1v55oGKsF1JF/yx5Gl9HAbEW4NjY9jOmCZhuLyBysmsS2PSdt/FK1huh/WZ/w==","signatures":[{"sig":"MEQCICqrqZbSvtD6CQJlR7ULhwzbGHk/2b6WrmG7HH0+hn0BAiB6JuExOXw6Awe2LxdqSJyIpfD3341QVfSLLE1jEV/Qcw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7983,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfDHI2CRA9TVsSAnZWagAAhkEP/iSnSLAFnQ4MrOQryWIi\nMGb//OgX1PpIPFYTpzlWLh4nTThQOzOxlDLl52rwnWU0iIZ8LLcsaWEFGxwu\nvGvvQ6ikp9gAAFvVhrq/cEj9sx6+lrQA7mVaBNcqZAQp8sL/HL/soyv8xZLE\ndfiqNpsROawirNr014eNkxCLyTMfYgQhi0ox5wRZNgZ3kWLF0ZsKMxMulZ4s\nkdy53u0w3A+s/PbQStI7ODfC8jw+AbMHKqkhHkWhde9BRbaPwddZmkfrMJ23\nqFPWQQBnQcULbKrVlO3rWWJq4oj2wgRBWxNNpB8gK+gGGC8M0o5KSq/Zs3rs\nqJwgQHFRQE5pL7hu8vb+bzd8+v4yPAJu2gEIeVU0bd+EnAAXtQFWfcm3YqrS\ngqY+gbRgGLPbKEUwpuJvGyqCvAhuzZraVV+YUoDSGE0ZsUBLenX8PLDhe/zU\nJ4U0dzFEhE01hk3AsHLugxPOy1kU8xRWyU+mEhzxBHY76RNGxNMrCjk5cY/l\n8BbuwPBqbkauu0doZXZR3STYcsHZEi6x+OnamhQlZQ324nZ9lO80jBkPIVqq\nerb4//DGvPnvS+I3uC8fXC7Z0+KFhwaEbpJkxeFCgVIJzKatEDvz230OXvKl\nekSqc3odeSScfnUhn6dxNiLI1zaDl2vvnxNYc7fsNaXsaXThrChGVZ8ykCKA\nj5gv\r\n=i8T/\r\n-----END PGP SIGNATURE-----\r\n","size":2859,"noattachment":false,"key":"/@turf/bbox-polygon/-/@turf/bbox-polygon-6.2.0-alpha.2.tgz"},"main":"dist/js/index.js","types":"dist/js/index.d.ts","module":"dist/es/index.js","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    -   `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]&lt;[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:\nif you find an error, edit the source file (likely index.js), and re-run\n./scripts/generate-readmes in the turf project. -->\n\n---\n\nThis module is part of the [Turfjs project](http://turfjs.org/), an open source\nmodule collection dedicated to geographic algorithms. It is maintained in the\n[Turfjs/turf](https://github.com/Turfjs/turf) repository, where you can create\nPRs and issues.\n\n### Installation\n\nInstall this module individually:\n\n```sh\n$ npm install @turf/bbox-polygon\n```\n\nOr install the Turf module that includes it as a function:\n\n```sh\n$ npm install @turf/turf\n```\n","gitHead":"23d5cb91d77e0c1e2e903a2252f525797f1d0d09","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.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"tape":"*","tslint":"*","benchmark":"*","typescript":"*","@types/tape":"*","npm-run-all":"*"},"_npmOperationalInternal":{"tmp":"tmp/bbox-polygon_6.2.0-alpha.2_1594651190258_0.9566184599689882","host":"s3://npm-registry-packages"},"publish_time":1594651190393,"_cnpm_publish_time":1594651190393,"dist-tags":{"canary":"3.5.2-alpha.d2c36ee7","latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}