{"name":"@turf/square","version":"6.2.0-alpha.3","keywords":["turf","gis","geojson","extent"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/square@6.2.0-alpha.3","homepage":"https://github.com/Turfjs/turf","bugs":{"url":"https://github.com/Turfjs/turf/issues"},"dist":{"shasum":"e168bdf194576a639daa19755615c1b74ea733f6","tarball":"http://registry-npm.ywwl.com/@turf/square/download/@turf/square-6.2.0-alpha.3.tgz","fileCount":9,"integrity":"sha512-cFtSinkAq36RCoDmiOBfUnjOM0dB/g5xeu0LcEN30Wb5iEkWq6T1EAZiJKZtfUnL77RwTVRnUCvEmsUksDhl/Q==","signatures":[{"sig":"MEUCIQDZvKiY8jdNLiUyVr7ZAyxvbrkELBARFwQyrYOR35SvBgIgNFZ/K9Td+/JOSD2zrwefidLS2tfLR+Q/cFgoSj4acSc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8983,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf0o10CRA9TVsSAnZWagAA/BQP/2Qy+cj8BwZruVMz3rgu\n2Rf8Hjzkfu8bhHOkQObrT4pFLH6mjbB0n0CRXnJpYPaCC1mdKozk/P4ci7Wa\nML4lCBxBQFpaiRV9aHVFTC95OW+otZ/oRH8n3K0bctZCCikQ/EJdwSyh6QT2\ndtpE+67XSxCc0sb2Y+a+yQtsdlMj+y7no72jxPM7pHiAL/uwjEW93lvvfTwU\nFUQIWxYkIb4rS8EEMsFTo/NK0FthTevYUPqjXqGFMwbqcYsXWPe9lzxAKocI\nB3Jl/vXQe3jv3UhqvVSPtm0LSkJ9RHJ4iTRsB88FlAC3zF3S8GBYXzGV+Aq9\nP2kdMooqosdlyijKwwuEy2jG2X4KlohDHhRb9Osh7Phw8/d6ML+TQrRqzEZ9\nor1jqRR3ORzPS7LfXYcfSANg29YzfSVsVp6JvctaQqI0d5/tivDGZ5fOLiXR\nUxfExNyzv8niOxe5khBes8/wruqy6sRqdc/C7jiIIqH+9osaOUgrsi15WazW\nGFu9Amttm8N4EEbf6RTpOS0bQlxfwFCk/trWbgOF+lge3N3eO1HG7PIJofXk\nUom+tT1Zw/SBAAwnYJ6N87+BLaDifQuSnq3YeTG9S1MBIIyWtf36yq7G2xnh\nPxQ7Bgbp3efpcThC1IiIAiM2TXabZMEsgxOdMHSsh3gixsZH2SzXx7qGdf7K\nx6yW\r\n=VXow\r\n-----END PGP SIGNATURE-----\r\n","size":2748,"noattachment":false,"key":"/@turf/square/-/@turf/square-6.2.0-alpha.3.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":"dce9edfc705352e8cb9e0083c9330ba0e8d77409","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","posttest":"node -r esm ../../scripts/validate-es5-dependencies.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.3","@turf/distance":"^6.2.0-alpha.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"tape":"*","rollup":"*","benchmark":"*","npm-run-all":"*"},"_npmOperationalInternal":{"tmp":"tmp/square_6.2.0-alpha.3_1607634291713_0.20172248652919755","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":1607634291879,"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":1607634291879,"dist-tags":{"canary":"3.5.2-alpha.d2c36ee7","latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}