{"name":"@turf/bbox","version":"6.5.0","keywords":["turf","extent","bbox","polygon","featurecollection","geojson"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/bbox@6.5.0","maintainers":[{"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":"deniscarriere","email":"carriere.denis@gmail.com"},{"name":"mdfedderly","email":"mdfedderly@mdfedderly.com"}],"homepage":"https://github.com/Turfjs/turf","bugs":{"url":"https://github.com/Turfjs/turf/issues"},"dist":{"shasum":"bec30a744019eae420dac9ea46fb75caa44d8dc5","tarball":"http://registry-npm.ywwl.com/@turf/bbox/download/@turf/bbox-6.5.0.tgz","fileCount":7,"integrity":"sha512-RBbLaao5hXTYyyg577iuMtDB8ehxMlUqHEJiMs8jT1GHkFhr6sYre3lmLsPeYEi/ZKj5TP5tt7fkzNdJ4GIVyw==","signatures":[{"sig":"MEQCIG/WaknQfdIQzyMW7zHIdYjBfo86M3TBQK4bB8c1ruYWAiAPPzwVNFkxPEoWDbkKzS8FU/1yrSyJLE+AJBFUcgHFYg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6582,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2fHMCRA9TVsSAnZWagAADkMP/A0E0d/ALC/bsDzW1VGL\nZDR02EGq5Yx1kvyjp2AsFyiHGfOmXafA4P06BUKa6kJTVFI4fzJx0cjist5c\n5YBYOnQEOobdSZry2fSJay7JoGaQuSlwPlIjPmH4Q/GVCVdRDvabbDWEECtz\n02GXoWYCiHaM9/7BjHAtSBmblLVKf14Xk6VH5fIWUUEMXN6JMaNsCuhzD8ZB\n9AlulATTTscgyAw3jZONIWtwei+5SAKQIInyL1KxnhPho8xzurCUYS0RQeOB\n6R13iBO1OmzH2SJv8NzPzM73qJz4laDQF6a2uH+gq8wH35D56ejhtUqchLTz\nn6dtknqQ+7rkAZg4SQDCaLJ/i8j1LnODcfZP/kkzql6qRvyf3aGYlurnynUX\ntXhSZSDxz/n3Y82zYnkyoo7FmDWBWWagxL7SzKzEpFBgItgXfCrVfYXlX16s\n4ixAOoqIsQRvXe7RNcsKpIoPtciUIbfCMwG1lyXRRat3mY/T2Oy5//bBkOM+\nO1bJTqWuBoH8kIp6g6qZBRIxXaGuXKSnx31/XBsoUWpXKa0k9gkyIRc6h0oJ\nWveN5puIChGlNVO68iBpB3BAIakIDKKh88llsCGwz4FYNrp9fSg7oHrLzPtV\nDmgRbwLSxST5H/XHrS3wq39iCNBOnbJRjH3Tw+mTp4qJoXMG8Iav5cXaZj0R\npJck\r\n=GQaj\r\n-----END PGP SIGNATURE-----\r\n","size":2595,"noattachment":false,"key":"/@turf/bbox/-/@turf/bbox-6.5.0.tgz"},"main":"dist/js/index.js","types":"dist/js/index.d.ts","module":"dist/es/index.js","exports":{".":{"import":"./dist/es/index.js","require":"./dist/js/index.js"},"./package.json":"./package.json"},"funding":"https://opencollective.com/turf","gitHead":"5375941072b90d489389db22b43bfe809d5e451e","scripts":{"docs":"node ../../scripts/generate-readmes","test":"npm-run-all test:*","bench":"ts-node 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":"ts-node -r esm test.js"},"_npmUser":{"name":"rowanwins","email":"rowanwins@yahoo.com.au"},"repository":{"url":"git://github.com/Turfjs/turf.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.8.0+x64 (darwin)","description":"turf bbox module","directories":{},"sideEffects":false,"_nodeVersion":"14.8.0","dependencies":{"@turf/meta":"^6.5.0","@turf/helpers":"^6.5.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tape":"*","tslint":"*","ts-node":"*","benchmark":"*","typescript":"*","@types/tape":"*","npm-run-all":"*"},"_npmOperationalInternal":{"tmp":"tmp/bbox_6.5.0_1625912253969_0.5432224044844081","host":"s3://npm-registry-packages"},"readme":"# @turf/bbox\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n## bbox\n\nCalculates the bounding box for any GeoJSON object, including FeatureCollection.\nUses geojson.bbox if available and options.recompute is not set.\n\n### Parameters\n\n*   `geojson` **[GeoJSON][1]** any GeoJSON object\n*   `options` **[Object][2]** Optional parameters (optional, default `{}`)\n\n    *   `options.recompute` **[boolean][3]?** Whether to ignore an existing bbox property on geojson\n\n### Examples\n\n```javascript\nvar line = turf.lineString([[-74, 40], [-78, 42], [-82, 35]]);\nvar bbox = turf.bbox(line);\nvar bboxPolygon = turf.bboxPolygon(bbox);\n\n//addToMap\nvar addToMap = [line, bboxPolygon]\n```\n\nReturns **[BBox][4]** bbox extent in \\[minX, minY, maxX, maxY] order\n\n[1]: https://tools.ietf.org/html/rfc7946#section-3\n\n[2]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object\n\n[3]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean\n\n[4]: https://tools.ietf.org/html/rfc7946#section-5\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\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":1625912254112,"_cnpm_publish_time":1625912254112,"dist-tags":{"canary":"3.5.2-alpha.d2c36ee7","latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}