{"name":"@turf/square","version":"6.2.0-alpha.0","keywords":["turf","gis","geojson","extent"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/square@6.2.0-alpha.0","homepage":"https://github.com/Turfjs/turf","bugs":{"url":"https://github.com/Turfjs/turf/issues"},"dist":{"shasum":"74bc3fa2ddbc3dce4d2f56d844886a90a2b5fa24","tarball":"http://registry-npm.ywwl.com/@turf/square/download/@turf/square-6.2.0-alpha.0.tgz","fileCount":8,"integrity":"sha512-1SHyG64Rm+0SvBbs7jzcXT1HZCUuE+dHbIHjClOn16fEQmmOFRzgMGBiaEoyatXqFy+jjwliLB1Lkg/qb+xhmg==","signatures":[{"sig":"MEYCIQDVGfcZssUM5uTocCVNup7vWF+xj4bbhrUmIvlhjpR+0gIhAJuddQlRFCUalBa3GgmnC4G+/TJq8YnPkNMavJsIK8fl","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9021,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJefS44CRA9TVsSAnZWagAAvzQP/jq8RI/qnwb/koxjrBUa\niBmhw7zwudmgz6twJaP4PxoUw8ajmwp3SyH3+wAV5ZpZEs/RrxpSkNFfYy3v\ndZSdR8UDrS2kFEij+cUmLRKLSZYYLGpGf3Amx0gPPGXh7ojPbBPUJ/IZHUtl\nFEOuOyGoL21oUmCfszHcrhUTe9TfOq4O3iRO3kb0+HKad0KTQZd50mxvlzuZ\nG79QCbfQ2GkFYywjXsEB1fVAjjE2bG4x5JzUBvprwj2m+qMuoz+Bs7CSCZql\n/Ws1ZEhgrRMPV6tuCAVZRpCkPRx//5/y7P9i9OuGnNljMFjabnVl08Zu4yMr\n/OQ4H6BA/h9kYf19A3r0PZV8E3itIz742fVqu4RkG76FuxcLifcexjGJUgOb\nIIsYHtHKg+TbnY+Q4IZe9GSHPqyPT6ClmD575ZV2PXwHAQn0IaPvpjmroCO1\n+X7v2CnVtH9EAYOoYfxAud0rYnYThaiPS6ZLNb4kicsORJRDGOk8JlIL4xKL\nZ5vyGAE+eCKx/dst3GIlnIHseaFuOXMEhyZieHH2B2KSzC2oKuFgOXBYJPys\nkG3H/6o98QcU8A4408O3TlgtiBxG2KS4dmGzjaGTMSqgtdG1+o2f3aMb7xts\njFcvBxXhWbYonYx1RONDjNx4/24f+hq68IXOSWynez8IjgK3V2emIGRDPfVw\n3zC2\r\n=T/5Z\r\n-----END PGP SIGNATURE-----\r\n","size":2575,"noattachment":false,"key":"/@turf/square/-/@turf/square-6.2.0-alpha.0.tgz"},"main":"dist/js/index.js","types":"index.d.ts","module":"dist/es/index.js","gitHead":"23b651deaa1ca6a0960d0142aea620b7cc6a076d","scripts":{"docs":"node ../../scripts/generate-readmes","test":"npm-run-all prepare test:*","bench":"npm-run-all prepare bench:run","prepare":"rollup -c ../../rollup.config.js","posttest":"node -r esm ../../scripts/validate-es5-dependencies.js","bench:run":"node bench.js","test:tape":"node -r esm test.js"},"_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 square module","directories":{},"sideEffects":false,"_nodeVersion":"13.10.1","dependencies":{"@turf/helpers":"^6.2.0-alpha.0","@turf/distance":"^6.2.0-alpha.0"},"_hasShrinkwrap":false,"devDependencies":{"tape":"*","rollup":"*","benchmark":"*"},"_npmOperationalInternal":{"tmp":"tmp/square_6.2.0-alpha.0_1585262135658_0.19944531190285897","host":"s3://npm-registry-packages"},"readme":"# @turf/square\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n## square\n\nTakes a bounding box and calculates the minimum square bounding box that\nwould contain the input.\n\n### Parameters\n\n*   `bbox` **[BBox][1]** extent in \\[west, south, east, north] order\n\n### Examples\n\n```javascript\nconst bbox = [-20, -20, -15, 0];\nconst squared = turf.square(bbox);\n\n//addToMap\nconst addToMap = [turf.bboxPolygon(bbox), turf.bboxPolygon(squared)]\n```\n\nReturns **[BBox][1]** a square surrounding `bbox`\n\n[1]: 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/square\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":1585262135792,"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":1585262135792,"dist-tags":{"canary":"3.5.2-alpha.d2c36ee7","latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}