{"name":"@turf/square","version":"6.2.0","keywords":["turf","gis","geojson","extent"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/square@6.2.0","homepage":"https://github.com/Turfjs/turf","bugs":{"url":"https://github.com/Turfjs/turf/issues"},"dist":{"shasum":"99d30f8f6252fc0f823e6a7a0446c7553356f2a5","tarball":"http://registry-npm.ywwl.com/@turf/square/download/@turf/square-6.2.0.tgz","fileCount":7,"integrity":"sha512-w+HYBnAZERHQ4E3vqAqhG98OXzsG3l7oA+EyqAuja6S1UNSKQD9+sWB4tV+IJii/blLbgHHmIr/OJrGjMd7C+w==","signatures":[{"sig":"MEQCIBdA6tsr1cnzjs0/USgI2FrRG1FpsQSTtpNjxSF/z6NJAiBtAofL16imL9RNXM6Swe+19Ob2w/dIbXi26vtAem3owg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6179,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf/bkBCRA9TVsSAnZWagAASmcP+wWm6lMQfxC7iQXhdL5B\nklwTrVOuVDbYsOTAaad5mh2ozOkGudXpYvaJuqoiMg1QGqQ/VC7UihbT+lAP\nEP3oF1twjgxliwmZqLCupBsGGKn21+wADLGvP+rimuXcZGDj4bIbbNQ+6ywt\n54ako201mCoFjqbC1myDw2jkHjVHaBPsVLTgD2tu+jPtw8TT8XylL4yflrRj\nXMqFx0Wce/U7Sy31d2Ai7dm+En3RLQudRu4jCi3osaeb3Q6J0jdkxV9SsvwE\nLxWCpfaxonFMID/aMMTBddl665IgyzuEKx1s2TathJD5HZk7YQBvN1PYr9Fb\nru1Jh6ZZHUHf6+Dk8b2oypOXtfLGgbIoLOtL+D69iTVcB+re1GfRhNKZafmx\nI/iTOnrUJPllub0FiydrhLjfgx4OOhXFnolA0B8amhOYJ6Tu9/0C5dEv6MCS\nGaWhsLfd7ptHpjkRqkqlXHM1+iRVJHrYXHIPJlR6uml9TKdNPD0kvsvzIQwD\n7XWbQkzcyhO2aOdJiFTMOGCJvClsV0+A9v5eo0Pz7HSqOeIRtPYubvwwzFHg\nedViCLNyPL5d0YkVfQlFdo1B5iLzO+4X0GHfYaw5sE4GhMdW8KpkzevKhFCR\nzeNu15mJyr1Jtszvt+OLnnJme++Lyx+VDmnbp9U3bT0O8igdktXsVwL4foTV\nyHPc\r\n=tAdx\r\n-----END PGP SIGNATURE-----\r\n","size":2554,"noattachment":false,"key":"/@turf/square/-/@turf/square-6.2.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"},"gitHead":"c277baf2b967a35efec75de9ae54869d20da5288","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.2.0","@turf/distance":"^6.2.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tape":"*","rollup":"*","benchmark":"*","npm-run-all":"*"},"_npmOperationalInternal":{"tmp":"tmp/square_6.2.0_1610463488842_0.4345824539775538","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":1610463488966,"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":1610463488966,"dist-tags":{"canary":"3.5.2-alpha.d2c36ee7","latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}