{"name":"@turf/square","version":"6.3.0","keywords":["turf","gis","geojson","extent"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/square@6.3.0","homepage":"https://github.com/Turfjs/turf","bugs":{"url":"https://github.com/Turfjs/turf/issues"},"dist":{"shasum":"8e8ff24bf5d391714361c157c7b01a85cd55ac19","tarball":"http://registry-npm.ywwl.com/@turf/square/download/@turf/square-6.3.0.tgz","fileCount":7,"integrity":"sha512-/nRGsV0DlUcOYv+gKAkIADSf+HooNLbOLBTUdhq9Piy3LuAWIXT+Rt5XN+NuNZP+84Al34GA1fR+BxqQ4reh7w==","signatures":[{"sig":"MEYCIQD4dTML2Ey+NlOqJG5sWoIEngVeM6TaILf23xlgxHpNjgIhAIIuzi7DLEa0eeSJiz9luiD430OjkUjj975DmBrKJaO6","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6240,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgCECoCRA9TVsSAnZWagAArS8P/03lwwjqzI/Tbtuapnms\nI8ghXFBqhy+CwTEpK5YJ2afBCZzcFYMYKqfCSZ0wbAhukIBcMRqkyCmUHu1P\nr4UeyDc+oAQieKBPl95GLavjoIdE3g8IpfMNCzI8it+CKBLs4wtjI7aeWjEg\n1HuxKDL5Um6CRnqDstEZ17V+nxAbP/TtmzMtB4hIIh1Maivql0ok826wcR5G\nt6g1V6RW+remBr8jiERt+pFWI2+L/XcrhKuVWZFRdeYTd+8k+/3oe+3vGdJM\nAUpcZxYZbcD7jWqVzmyueSyg5QKOpKf6P2Vj38HgE2GwHWGtKJhmU8j9ftCi\nzRY7oI2UsFPynPxp6dx+R+SMm2u46hdkINB7rXy/CG0dkH2OER5B++PG2vuf\n8JnMlRQkrhZOYQYOC1AMKY7tDjtJLwji1ABvmb6fjE/ptRwojokOZ21X19XG\nEDpwcGTBjQ81Wnq9l8CdQSgAL65oRP34V2Q23ZgX+sUJ7Tyst6JOYHQ3uIRt\n3Xi4VHKrjqBbG89iOTMsudGLucp8h1II2NhJyd62kIMHVWqq1C2aRtUK3n+W\n/ZfdmexQlScuEuZPY4svIjbymMoNi+TfExA0pUtkJX0LOyo5YYvPICmw/gx9\nL1lCb38tac9zptxaltu3Ui7t+BhES7i3do8x+M1CGM3P6bVWRTF+ZizXAyyB\nz2rA\r\n=CJ4I\r\n-----END PGP SIGNATURE-----\r\n","size":2569,"noattachment":false,"key":"/@turf/square/-/@turf/square-6.3.0.tgz"},"main":"dist/js/index.js","types":"index.d.ts","module":"dist/es/index.js","exports":{".":{"import":"./dist/es/index.js","require":"./dist/js/index.js"},"./package.json":"./package.json"},"gitHead":"57c8877e1e2d67effc2cdd23385c02b2a6615a49","scripts":{"docs":"node ../../scripts/generate-readmes","test":"npm-run-all test:*","bench":"node -r esm bench.js","build":"rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json","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.3.0","@turf/distance":"^6.3.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tape":"*","rollup":"*","benchmark":"*","npm-run-all":"*"},"_npmOperationalInternal":{"tmp":"tmp/square_6.3.0_1611153570549_0.06567056583420472","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":1611153576604,"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":1611153576604,"dist-tags":{"canary":"3.5.2-alpha.d2c36ee7","latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}