{"name":"@turf/square","version":"6.4.0","keywords":["turf","gis","geojson","extent"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/square@6.4.0","homepage":"https://github.com/Turfjs/turf","bugs":{"url":"https://github.com/Turfjs/turf/issues"},"dist":{"shasum":"98df385ef29ff278de7d76903524ba25a8f945e9","tarball":"http://registry-npm.ywwl.com/@turf/square/download/@turf/square-6.4.0.tgz","fileCount":7,"integrity":"sha512-mEo4fpOOGl7HVe0y3iEZblV1CLI4EAnfr+8UTipmJy94h2QLjPS7+ksoK3uKTezEXtcBxHLuwYrzWTN9/72ATw==","signatures":[{"sig":"MEUCIQDYMlgC7d1JP2+LrQ5oOzS77kGhH97g8oSXcs5tG97U/wIgU2gwRgkHVPqVI4lsAyGQN30UFwoS/gw5qYzquNAPut8=","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\nwsFcBAEBCAAQBQJgy06LCRA9TVsSAnZWagAAvVQP/2YJvy1tU5He5wUJAhKc\nUaU/MQ4UA4+lL3AA2lVuPykF23vl0KyPuKlsMOBMQmJ8yttYLzaeAJgv5RW5\nx8TtmBXizrM96FENRJWILWoUOqx3vi9vXiuGUIrbq9HYIQadfoMWC1AAmfdL\nO8I8I5QXihghhqSiVc/J6ihjIFuFD0XBQPjcYBjgcIrzkls56NMPK/YawtkK\nOb9gdHMO15v2VIDT+ZHNyoeD3xIWnzPPX8NRZwv2DkP9EOL7/um3fPc9u8zN\nDrjZE8R17Hd5O5iPyqPa+KH60oVfNhHenVhWmrct0cH9evdEiRIXplXtBCRZ\n/8EvNozq1oCqMobqIxneY06MNCAfbOT0nE7q2ClOeUbk7HtE4ioRFDZ44lgb\nzpc1DAbXXQkjRK2Fk5PwmxP8jArDNVMObhykJPwf/IBo7Spb6b3rj4O7Q6sQ\n4R79wL62nUlIhc+ihRnytoGf9Z41ECZoQYHbYluTugDoSKyYXbyIPAOpk0Bd\nYAv8C/T2VpEaHbBPdkrTulK0pPNGv+Eqwb9SIlt1y/L4KltDKaEiImmOv4Nr\nzdKOWpmSQzCdBKF/k2Eegqurr8QAwRCiGBGcFMQ+7H3pnTyrxZf6TgogZhza\nXqqARat45TXkDe8i4FTXcXMYKKcTYVm6LZDZHxCr/LesHaicK17PyZq2QmBK\ntctC\r\n=NYjm\r\n-----END PGP SIGNATURE-----\r\n","size":2575,"noattachment":false,"key":"/@turf/square/-/@turf/square-6.4.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":"1e62773cfc88c627cca8effcb5c14cfb65a905ac","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":"rowanwins","email":"rowanwins@yahoo.com.au"},"repository":{"url":"git://github.com/Turfjs/turf.git","type":"git"},"_npmVersion":"lerna/3.20.2/node@v14.14.0+x64 (darwin)","description":"turf square module","directories":{},"sideEffects":false,"_nodeVersion":"14.14.0","dependencies":{"@turf/helpers":"^6.4.0","@turf/distance":"^6.4.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tape":"*","rollup":"*","benchmark":"*","npm-run-all":"*"},"_npmOperationalInternal":{"tmp":"tmp/square_6.4.0_1623936651455_0.42334305281546136","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":1623936651596,"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":1623936651596,"dist-tags":{"canary":"3.5.2-alpha.d2c36ee7","latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}