{"name":"@turf/helpers","version":"7.2.0","description":"turf helpers module","author":"Turf Authors","contributors":["Tom MacWright <@tmcw>","Stefano Borghi <@stebogit>","Denis Carriere <@DenisCarriere>","William Nordmann <@wnordmann>"],"license":"MIT","bugs":{"url":"https://github.com/Turfjs/turf/issues"},"homepage":"https://github.com/Turfjs/turf","repository":{"type":"git","url":"git://github.com/Turfjs/turf.git"},"funding":"https://opencollective.com/turf","publishConfig":{"access":"public"},"keywords":["geo","point","turf","geojson"],"type":"module","main":"dist/cjs/index.cjs","module":"dist/esm/index.js","types":"dist/esm/index.d.ts","exports":{"./package.json":"./package.json",".":{"import":{"types":"./dist/esm/index.d.ts","default":"./dist/esm/index.js"},"require":{"types":"./dist/cjs/index.d.cts","default":"./dist/cjs/index.cjs"}}},"sideEffects":false,"scripts":{"bench":"tsx bench.ts","build":"tsup --config ../../tsup.config.ts","docs":"tsx ../../scripts/generate-readmes.ts","test":"npm-run-all --npm-path npm test:*","test:tape":"tsx test.ts","test:types":"tsc --esModuleInterop --module node16 --moduleResolution node16 --noEmit --strict types.ts"},"devDependencies":{"@types/benchmark":"^2.1.5","@types/tape":"^4.13.4","benchmark":"^2.1.4","npm-run-all":"^4.1.5","tape":"^5.9.0","tsup":"^8.3.5","tsx":"^4.19.2","typescript":"^5.5.4"},"dependencies":{"@types/geojson":"^7946.0.10","tslib":"^2.8.1"},"gitHead":"7b0f0374c4668cd569f8904c71e2ae7d941be867","_nodeVersion":"18.20.5","_npmVersion":"lerna/8.1.9/node@v18.20.5+x64 (linux)","_id":"@turf/helpers@7.2.0","dist":{"integrity":"sha512-cXo7bKNZoa7aC7ydLmUR02oB3IgDe7MxiPuRz3cCtYQHn+BJ6h1tihmamYDWWUlPHgSNF0i3ATc4WmDECZafKw==","shasum":"5771308108c98d608eb8e7f16dcd0eb3fb8a3417","tarball":"http://registry-npm.ywwl.com/@turf/helpers/download/@turf/helpers-7.2.0.tgz","fileCount":9,"unpackedSize":150590,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDrjokexaZRzOj4qh7mn1g59mrSwkm20IlEEsSW71HZdAIgdHy7hseR5bGNSgFYQKKL/32BvPC6dwVPH5D9E1U8IrQ="}],"size":21855,"noattachment":false,"key":"/@turf/helpers/-/@turf/helpers-7.2.0.tgz"},"_npmUser":{"name":"mdfedderly","email":"mdfedderly@mdfedderly.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/helpers_7.2.0_1735448322620_0.29196863574390397"},"_hasShrinkwrap":false,"readme":"# @turf/helpers\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n## helpers\n\n## Units\n\nLinear measurement units.\n\n⚠️ Warning. Be aware of the implications of using radian or degree units to\nmeasure distance. The distance represented by a degree of longitude *varies*\ndepending on latitude.\n\nSee [https://www.thoughtco.com/degree-of-latitude-and-longitude-distance-4070616][1]\nfor an illustration of this behaviour.\n\nType: (`\"meters\"` | `\"metres\"` | `\"m\"` | `\"millimeters\"` | `\"millimetres\"` | `\"mm\"` | `\"centimeters\"` | `\"centimetres\"` | `\"cm\"` | `\"kilometers\"` | `\"kilometres\"` | `\"km\"` | `\"miles\"` | `\"mi\"` | `\"nauticalmiles\"` | `\"nmi\"` | `\"inches\"` | `\"in\"` | `\"yards\"` | `\"yd\"` | `\"feet\"` | `\"ft\"` | `\"radians\"` | `\"rad\"` | `\"degrees\"` | `\"deg\"`)\n\n## AreaUnits\n\nArea measurement units.\n\nType: (Exclude<[Units][2], (`\"radians\"` | `\"rad\"` | `\"degrees\"` | `\"deg\"`)> | `\"acres\"` | `\"ac\"` | `\"hectares\"` | `\"ha\"`)\n\n## Grid\n\nGrid types.\n\nType: (`\"point\"` | `\"square\"` | `\"hex\"` | `\"triangle\"`)\n\n## Corners\n\nShorthand corner identifiers.\n\nType: (`\"sw\"` | `\"se\"` | `\"nw\"` | `\"ne\"` | `\"center\"` | `\"centroid\"`)\n\n## Lines\n\nGeometries made up of lines i.e. lines and polygons.\n\nType: ([LineString][3] | [MultiLineString][4] | [Polygon][5] | [MultiPolygon][6])\n\n## AllGeoJSON\n\nConvenience type for all possible GeoJSON.\n\nType: ([Feature][7] | [FeatureCollection][8] | [Geometry][9] | [GeometryCollection][10])\n\n## earthRadius\n\nThe Earth radius in meters. Used by Turf modules that model the Earth as a sphere. The [mean radius][11] was selected because it is [recommended ][12] by the Haversine formula (used by turf/distance) to reduce error.\n\nType: [number][13]\n\n## factors\n\nUnit of measurement factors based on earthRadius.\n\nKeys are the name of the unit, values are the number of that unit in a single radian\n\nType: Record<[Units][2], [number][13]>\n\n## areaFactors\n\nArea of measurement factors based on 1 square meter.\n\nType: Record<[AreaUnits][14], [number][13]>\n\n## feature\n\nWraps a GeoJSON [Geometry][9] in a GeoJSON [Feature][7].\n\n### Parameters\n\n*   `geom` **(G | null)**&#x20;\n*   `properties` **[GeoJsonProperties][7]** an Object of key-value pairs to add as properties (optional, default `{}`)\n*   `options` **[Object][15]** Optional Parameters (optional, default `{}`)\n\n    *   `options.bbox` **[BBox][16]?** Bounding Box Array \\[west, south, east, north] associated with the Feature\n    *   `options.id` **Id?** Identifier associated with the Feature\n*   `geometry` **[GeometryObject][9]** input geometry\n\n### Examples\n\n```javascript\nvar geometry = {\n  \"type\": \"Point\",\n  \"coordinates\": [110, 50]\n};\n\nvar feature = turf.feature(geometry);\n\n//=feature\n```\n\nReturns **[Feature][7]<[GeometryObject][9], [GeoJsonProperties][7]>** a GeoJSON Feature\n\n## geometry\n\nCreates a GeoJSON [Geometry][9] from a Geometry string type & coordinates.\nFor GeometryCollection type use `helpers.geometryCollection`\n\n### Parameters\n\n*   `type` **(`\"Point\"` | `\"LineString\"` | `\"Polygon\"` | `\"MultiPoint\"` | `\"MultiLineString\"` | `\"MultiPolygon\"`)** Geometry Type\n*   `coordinates` **[Array][17]\\<any>** Coordinates\n*   `_options` **Record<[string][18], never>**  (optional, default `{}`)\n*   `options` **[Object][15]** Optional Parameters (optional, default `{}`)\n\n### Examples\n\n```javascript\nvar type = \"Point\";\nvar coordinates = [110, 50];\nvar geometry = turf.geometry(type, coordinates);\n// => geometry\n```\n\nReturns **[Geometry][9]** a GeoJSON Geometry\n\n## point\n\nCreates a [Point][19] [Feature][7] from a Position.\n\n### Parameters\n\n*   `coordinates` **[Position][20]** longitude, latitude position (each in decimal degrees)\n*   `properties` **[GeoJsonProperties][7]** an Object of key-value pairs to add as properties (optional, default `{}`)\n*   `options` **[Object][15]** Optional Parameters (optional, default `{}`)\n\n    *   `options.bbox` **[BBox][16]?** Bounding Box Array \\[west, south, east, north] associated with the Feature\n    *   `options.id` **Id?** Identifier associated with the Feature\n\n### Examples\n\n```javascript\nvar point = turf.point([-75.343, 39.984]);\n\n//=point\n```\n\nReturns **[Feature][7]<[Point][19], [GeoJsonProperties][7]>** a Point feature\n\n## points\n\nCreates a [Point][19] [FeatureCollection][8] from an Array of Point coordinates.\n\n### Parameters\n\n*   `coordinates` **[Array][17]<[Position][20]>** an array of Points\n*   `properties` **[GeoJsonProperties][7]** Translate these properties to each Feature (optional, default `{}`)\n*   `options` **[Object][15]** Optional Parameters (optional, default `{}`)\n\n    *   `options.bbox` **[BBox][16]?** Bounding Box Array \\[west, south, east, north]\n        associated with the FeatureCollection\n    *   `options.id` **Id?** Identifier associated with the FeatureCollection\n\n### Examples\n\n```javascript\nvar points = turf.points([\n  [-75, 39],\n  [-80, 45],\n  [-78, 50]\n]);\n\n//=points\n```\n\nReturns **[FeatureCollection][8]<[Point][19]>** Point Feature\n\n## polygon\n\nCreates a [Polygon][5] [Feature][7] from an Array of LinearRings.\n\n### Parameters\n\n*   `coordinates` **[Array][17]<[Array][17]<[Position][20]>>**&#x20;\n*   `properties` **[GeoJsonProperties][7]** an Object of key-value pairs to add as properties (optional, default `{}`)\n*   `options` **[Object][15]** Optional Parameters (optional, default `{}`)\n\n    *   `options.bbox` **[BBox][16]?** Bounding Box Array \\[west, south, east, north] associated with the Feature\n    *   `options.id` **Id?** Identifier associated with the Feature\n\n### Examples\n\n```javascript\nvar polygon = turf.polygon([[[-5, 52], [-4, 56], [-2, 51], [-7, 54], [-5, 52]]], { name: 'poly1' });\n\n//=polygon\n```\n\nReturns **[Feature][7]<[Polygon][5], [GeoJsonProperties][7]>** Polygon Feature\n\n## polygons\n\nCreates a [Polygon][5] [FeatureCollection][8] from an Array of Polygon coordinates.\n\n### Parameters\n\n*   `coordinates` **[Array][17]<[Array][17]<[Array][17]<[Position][20]>>>**&#x20;\n*   `properties` **[GeoJsonProperties][7]** an Object of key-value pairs to add as properties (optional, default `{}`)\n*   `options` **[Object][15]** Optional Parameters (optional, default `{}`)\n\n    *   `options.bbox` **[BBox][16]?** Bounding Box Array \\[west, south, east, north] associated with the Feature\n    *   `options.id` **Id?** Identifier associated with the FeatureCollection\n\n### Examples\n\n```javascript\nvar polygons = turf.polygons([\n  [[[-5, 52], [-4, 56], [-2, 51], [-7, 54], [-5, 52]]],\n  [[[-15, 42], [-14, 46], [-12, 41], [-17, 44], [-15, 42]]],\n]);\n\n//=polygons\n```\n\nReturns **[FeatureCollection][8]<[Polygon][5], [GeoJsonProperties][7]>** Polygon FeatureCollection\n\n## lineString\n\nCreates a [LineString][3] [Feature][7] from an Array of Positions.\n\n### Parameters\n\n*   `coordinates` **[Array][17]<[Position][20]>** an array of Positions\n*   `properties` **[GeoJsonProperties][7]** an Object of key-value pairs to add as properties (optional, default `{}`)\n*   `options` **[Object][15]** Optional Parameters (optional, default `{}`)\n\n    *   `options.bbox` **[BBox][16]?** Bounding Box Array \\[west, south, east, north] associated with the Feature\n    *   `options.id` **Id?** Identifier associated with the Feature\n\n### Examples\n\n```javascript\nvar linestring1 = turf.lineString([[-24, 63], [-23, 60], [-25, 65], [-20, 69]], {name: 'line 1'});\nvar linestring2 = turf.lineString([[-14, 43], [-13, 40], [-15, 45], [-10, 49]], {name: 'line 2'});\n\n//=linestring1\n//=linestring2\n```\n\nReturns **[Feature][7]<[LineString][3], [GeoJsonProperties][7]>** LineString Feature\n\n## lineStrings\n\nCreates a [LineString][3] [FeatureCollection][8] from an Array of LineString coordinates.\n\n### Parameters\n\n*   `coordinates` **[Array][17]<[Array][17]<[Position][20]>>**&#x20;\n*   `properties` **[GeoJsonProperties][7]** an Object of key-value pairs to add as properties (optional, default `{}`)\n*   `options` **[Object][15]** Optional Parameters (optional, default `{}`)\n\n    *   `options.bbox` **[BBox][16]?** Bounding Box Array \\[west, south, east, north]\n        associated with the FeatureCollection\n    *   `options.id` **Id?** Identifier associated with the FeatureCollection\n\n### Examples\n\n```javascript\nvar linestrings = turf.lineStrings([\n  [[-24, 63], [-23, 60], [-25, 65], [-20, 69]],\n  [[-14, 43], [-13, 40], [-15, 45], [-10, 49]]\n]);\n\n//=linestrings\n```\n\nReturns **[FeatureCollection][8]<[LineString][3], [GeoJsonProperties][7]>** LineString FeatureCollection\n\n## featureCollection\n\nTakes one or more [Features][7] and creates a [FeatureCollection][8].\n\n### Parameters\n\n*   `features` **[Array][17]<[Feature][7]<[GeometryObject][9], [GeoJsonProperties][7]>>** input features\n*   `options` **[Object][15]** Optional Parameters (optional, default `{}`)\n\n    *   `options.bbox` **[BBox][16]?** Bounding Box Array \\[west, south, east, north] associated with the Feature\n    *   `options.id` **Id?** Identifier associated with the Feature\n\n### Examples\n\n```javascript\nvar locationA = turf.point([-75.343, 39.984], {name: 'Location A'});\nvar locationB = turf.point([-75.833, 39.284], {name: 'Location B'});\nvar locationC = turf.point([-75.534, 39.123], {name: 'Location C'});\n\nvar collection = turf.featureCollection([\n  locationA,\n  locationB,\n  locationC\n]);\n\n//=collection\n```\n\nReturns **[FeatureCollection][8]<[GeometryObject][9], [GeoJsonProperties][7]>** FeatureCollection of Features\n\n## multiLineString\n\nCreates a [Feature][7]<[MultiLineString][4]> based on a\ncoordinate array. Properties can be added optionally.\n\n### Parameters\n\n*   `coordinates` **[Array][17]<[Array][17]<[Position][20]>>**&#x20;\n*   `properties` **[GeoJsonProperties][7]** an Object of key-value pairs to add as properties (optional, default `{}`)\n*   `options` **[Object][15]** Optional Parameters (optional, default `{}`)\n\n    *   `options.bbox` **[BBox][16]?** Bounding Box Array \\[west, south, east, north] associated with the Feature\n    *   `options.id` **Id?** Identifier associated with the Feature\n\n### Examples\n\n```javascript\nvar multiLine = turf.multiLineString([[[0,0],[10,10]]]);\n\n//=multiLine\n```\n\n*   Throws **[Error][21]** if no coordinates are passed\n\nReturns **[Feature][7]<[MultiLineString][4], [GeoJsonProperties][7]>** a MultiLineString feature\n\n## multiPoint\n\nCreates a [Feature][7]<[MultiPoint][22]> based on a\ncoordinate array. Properties can be added optionally.\n\n### Parameters\n\n*   `coordinates` **[Array][17]<[Position][20]>** an array of Positions\n*   `properties` **[GeoJsonProperties][7]** an Object of key-value pairs to add as properties (optional, default `{}`)\n*   `options` **[Object][15]** Optional Parameters (optional, default `{}`)\n\n    *   `options.bbox` **[BBox][16]?** Bounding Box Array \\[west, south, east, north] associated with the Feature\n    *   `options.id` **Id?** Identifier associated with the Feature\n\n### Examples\n\n```javascript\nvar multiPt = turf.multiPoint([[0,0],[10,10]]);\n\n//=multiPt\n```\n\n*   Throws **[Error][21]** if no coordinates are passed\n\nReturns **[Feature][7]<[MultiPoint][22], [GeoJsonProperties][7]>** a MultiPoint feature\n\n## multiPolygon\n\nCreates a [Feature][7]<[MultiPolygon][6]> based on a\ncoordinate array. Properties can be added optionally.\n\n### Parameters\n\n*   `coordinates` **[Array][17]<[Array][17]<[Array][17]<[Position][20]>>>**&#x20;\n*   `properties` **[GeoJsonProperties][7]** an Object of key-value pairs to add as properties (optional, default `{}`)\n*   `options` **[Object][15]** Optional Parameters (optional, default `{}`)\n\n    *   `options.bbox` **[BBox][16]?** Bounding Box Array \\[west, south, east, north] associated with the Feature\n    *   `options.id` **Id?** Identifier associated with the Feature\n\n### Examples\n\n```javascript\nvar multiPoly = turf.multiPolygon([[[[0,0],[0,10],[10,10],[10,0],[0,0]]]]);\n\n//=multiPoly\n```\n\n*   Throws **[Error][21]** if no coordinates are passed\n\nReturns **[Feature][7]<[MultiPolygon][6], [GeoJsonProperties][7]>** a multipolygon feature\n\n## geometryCollection\n\nCreates a Feature<GeometryCollection> based on a\ncoordinate array. Properties can be added optionally.\n\n### Parameters\n\n*   `geometries` **[Array][17]<([Point][19] | [LineString][3] | [Polygon][5] | [MultiPoint][22] | [MultiLineString][4] | [MultiPolygon][6])>** an array of GeoJSON Geometries\n*   `properties` **[GeoJsonProperties][7]** an Object of key-value pairs to add as properties (optional, default `{}`)\n*   `options` **[Object][15]** Optional Parameters (optional, default `{}`)\n\n    *   `options.bbox` **[BBox][16]?** Bounding Box Array \\[west, south, east, north] associated with the Feature\n    *   `options.id` **Id?** Identifier associated with the Feature\n\n### Examples\n\n```javascript\nvar pt = turf.geometry(\"Point\", [100, 0]);\nvar line = turf.geometry(\"LineString\", [[101, 0], [102, 1]]);\nvar collection = turf.geometryCollection([pt, line]);\n\n// => collection\n```\n\nReturns **[Feature][7]<[GeometryCollection][10], [GeoJsonProperties][7]>** a GeoJSON GeometryCollection Feature\n\n## round\n\nRound number to precision\n\n### Parameters\n\n*   `num` **[number][13]** Number\n*   `precision` **[number][13]** Precision (optional, default `0`)\n\n### Examples\n\n```javascript\nturf.round(120.4321)\n//=120\n\nturf.round(120.4321, 2)\n//=120.43\n```\n\nReturns **[number][13]** rounded number\n\n## radiansToLength\n\nConvert a distance measurement (assuming a spherical Earth) from radians to a more friendly unit.\nValid units: miles, nauticalmiles, inches, yards, meters, metres, kilometers, centimeters, feet\n\n### Parameters\n\n*   `radians` **[number][13]** in radians across the sphere\n*   `units` **[Units][2]** can be degrees, radians, miles, inches, yards, metres,\n    meters, kilometres, kilometers. (optional, default `\"kilometers\"`)\n\nReturns **[number][13]** distance\n\n## lengthToRadians\n\nConvert a distance measurement (assuming a spherical Earth) from a real-world unit into radians\nValid units: miles, nauticalmiles, inches, yards, meters, metres, kilometers, centimeters, feet\n\n### Parameters\n\n*   `distance` **[number][13]** in real units\n*   `units` **[Units][2]** can be degrees, radians, miles, inches, yards, metres,\n    meters, kilometres, kilometers. (optional, default `\"kilometers\"`)\n\nReturns **[number][13]** radians\n\n## lengthToDegrees\n\nConvert a distance measurement (assuming a spherical Earth) from a real-world unit into degrees\nValid units: miles, nauticalmiles, inches, yards, meters, metres, centimeters, kilometres, feet\n\n### Parameters\n\n*   `distance` **[number][13]** in real units\n*   `units` **[Units][2]** can be degrees, radians, miles, inches, yards, metres,\n    meters, kilometres, kilometers. (optional, default `\"kilometers\"`)\n\nReturns **[number][13]** degrees\n\n## bearingToAzimuth\n\nConverts any bearing angle from the north line direction (positive clockwise)\nand returns an angle between 0-360 degrees (positive clockwise), 0 being the north line\n\n### Parameters\n\n*   `bearing` **[number][13]** angle, between -180 and +180 degrees\n\nReturns **[number][13]** angle between 0 and 360 degrees\n\n## azimuthToBearing\n\nConverts any azimuth angle from the north line direction (positive clockwise)\nand returns an angle between -180 and +180 degrees (positive clockwise), 0 being the north line\n\n### Parameters\n\n*   `angle` **[number][13]** between 0 and 360 degrees\n\nReturns **[number][13]** bearing between -180 and +180 degrees\n\n## radiansToDegrees\n\nConverts an angle in radians to degrees\n\n### Parameters\n\n*   `radians` **[number][13]** angle in radians\n\nReturns **[number][13]** degrees between 0 and 360 degrees\n\n## degreesToRadians\n\nConverts an angle in degrees to radians\n\n### Parameters\n\n*   `degrees` **[number][13]** angle between 0 and 360 degrees\n\nReturns **[number][13]** angle in radians\n\n## convertLength\n\nConverts a length from one unit to another.\n\n### Parameters\n\n*   `length` **[number][13]** Length to be converted\n*   `originalUnit` **[Units][2]** Input length unit (optional, default `\"kilometers\"`)\n*   `finalUnit` **[Units][2]** Returned length unit (optional, default `\"kilometers\"`)\n\nReturns **[number][13]** The converted length\n\n## convertArea\n\nConverts an area from one unit to another.\n\n### Parameters\n\n*   `area` **[number][13]** Area to be converted\n*   `originalUnit` **[AreaUnits][14]** Input area unit (optional, default `\"meters\"`)\n*   `finalUnit` **[AreaUnits][14]** Returned area unit (optional, default `\"kilometers\"`)\n\nReturns **[number][13]** The converted length\n\n## isNumber\n\nisNumber\n\n### Parameters\n\n*   `num` **any** Number to validate\n\n### Examples\n\n```javascript\nturf.isNumber(123)\n//=true\nturf.isNumber('foo')\n//=false\n```\n\nReturns **[boolean][23]** true/false\n\n## isObject\n\nisObject\n\n### Parameters\n\n*   `input` **any** variable to validate\n\n### Examples\n\n```javascript\nturf.isObject({elevation: 10})\n//=true\nturf.isObject('foo')\n//=false\n```\n\nReturns **[boolean][23]** true/false, including false for Arrays and Functions\n\n## removeBbox\n\nRecursively removes bounding boxes from a GeoJSON object.\n\nThis function mutates the input GeoJSON object.\n\n### Parameters\n\n*   `geojson` **[GeoJSON][24]** GeoJSON object whose bounding boxes should be removed\n\nReturns **void**&#x20;\n\n[1]: https://www.thoughtco.com/degree-of-latitude-and-longitude-distance-4070616\n\n[2]: #units\n\n[3]: https://tools.ietf.org/html/rfc7946#section-3.1.4\n\n[4]: https://tools.ietf.org/html/rfc7946#section-3.1.5\n\n[5]: https://tools.ietf.org/html/rfc7946#section-3.1.6\n\n[6]: https://tools.ietf.org/html/rfc7946#section-3.1.7\n\n[7]: https://tools.ietf.org/html/rfc7946#section-3.2\n\n[8]: https://tools.ietf.org/html/rfc7946#section-3.3\n\n[9]: https://tools.ietf.org/html/rfc7946#section-3.1\n\n[10]: https://tools.ietf.org/html/rfc7946#section-3.1.8\n\n[11]: https://en.wikipedia.org/wiki/Earth_radius#Arithmetic_mean_radius\n\n[12]: https://rosettacode.org/wiki/Haversine_formula#:~:text=This%20value%20is%20recommended\n\n[13]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number\n\n[14]: #areaunits\n\n[15]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object\n\n[16]: https://tools.ietf.org/html/rfc7946#section-5\n\n[17]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array\n\n[18]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String\n\n[19]: https://tools.ietf.org/html/rfc7946#section-3.1.2\n\n[20]: https://developer.mozilla.org/docs/Web/API/Position\n\n[21]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Error\n\n[22]: https://tools.ietf.org/html/rfc7946#section-3.1.3\n\n[23]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean\n\n[24]: https://tools.ietf.org/html/rfc7946#section-3\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/helpers\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":1735448322822,"maintainers":[{"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"},{"name":"twelch","email":"tim.j.welch@gmail.com"},{"name":"jamesmilneruk","email":"jamesmilner22@hotmail.com"},{"name":"morgan.herlocker","email":"morganherlocker@gmail.com"},{"name":"smallsaucepan","email":"james@smallsaucepan.com"}],"_cnpm_publish_time":1735448322822,"dist-tags":{"canary":"3.5.2-alpha.d2c36ee7","latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}