{"name":"@turf/bbox-polygon","version":"7.0.0-alpha.1","keywords":["turf","gis","geojson","extent","bbox"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/bbox-polygon@7.0.0-alpha.1","maintainers":[{"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"}],"homepage":"https://github.com/Turfjs/turf","bugs":{"url":"https://github.com/Turfjs/turf/issues"},"dist":{"shasum":"e22be5834c0b7bec03d06724e87791ec1005f93a","tarball":"http://registry-npm.ywwl.com/@turf/bbox-polygon/download/@turf/bbox-polygon-7.0.0-alpha.1.tgz","fileCount":7,"integrity":"sha512-rYgVrH2F16M9YS8zaIF07bkmGkJb4JpBdkDy+fxVS5rIVStk4K86pFnVWLwBZ5jrhmhf+XJFgdOyi67TndNkXQ==","signatures":[{"sig":"MEYCIQDg903yQDFUjGh1mDYSwHZWMfs3jREAOLSqg+e/kNifTwIhAPhVf96g8QBMDztm6/FJ+ovYsBmV5q4u8tlX33IvMfVd","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8094,"size":2980,"noattachment":false,"key":"/@turf/bbox-polygon/-/@turf/bbox-polygon-7.0.0-alpha.1.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\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:\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","exports":{".":{"types":"./dist/js/index.d.ts","import":"./dist/es/index.js","require":"./dist/js/index.js"},"./package.json":"./package.json"},"funding":"https://opencollective.com/turf","gitHead":"cf7a0c507b017ca066acffd0ce23bda5b393fb5a","scripts":{"docs":"tsx ../../scripts/generate-readmes","test":"npm-run-all test:*","bench":"tsx bench.js","build":"npm-run-all build:*","build:es":"tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json","build:js":"tsc","test:tape":"tsx test.js"},"_npmUser":{"name":"mdfedderly","email":"mdfedderly@mdfedderly.com"},"repository":{"url":"git://github.com/Turfjs/turf.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v19.6.1+arm64 (darwin)","description":"turf bbox-polygon module","directories":{},"sideEffects":false,"_nodeVersion":"19.6.1","dependencies":{"tslib":"^2.3.0","@turf/helpers":"^7.0.0-alpha.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"tsx":"*","tape":"*","tslint":"*","benchmark":"*","typescript":"*","@types/tape":"*","npm-run-all":"*"},"_npmOperationalInternal":{"tmp":"tmp/bbox-polygon_7.0.0-alpha.1_1695080742493_0.9670891414660745","host":"s3://npm-registry-packages"},"publish_time":1695080742694,"_cnpm_publish_time":1695080742694,"dist-tags":{"canary":"3.5.2-alpha.d2c36ee7","latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}