Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@turf/great-circle

Package Overview
Dependencies
Maintainers
6
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@turf/great-circle - npm Package Compare versions

Comparing version 5.1.5 to 6.2.0-alpha.0

dist/es/index.js

63

package.json
{
"name": "@turf/great-circle",
"version": "5.1.5",
"version": "6.2.0-alpha.0",
"description": "turf great-circle module",
"main": "main.js",
"module": "main.es.js",
"types": "index.d.ts",
"files": [
"index.js",
"index.d.ts",
"main.js",
"lib",
"main.es.js"
"author": "Turf Authors",
"contributors": [
"Dane Springmeyer <@springmeyer>",
"Stepan Kuzmin <@stepankuzmin>",
"Denis Carriere <@DenisCarriere>"
],
"scripts": {
"pretest": "rollup -c ../../rollup.config.js",
"test": "node -r @std/esm test.js",
"posttest": "node -r @std/esm ../../scripts/validate-es5-dependencies.js",
"bench": "node -r @std/esm bench.js",
"docs": "node ../../scripts/generate-readmes"
"license": "MIT",
"bugs": {
"url": "https://github.com/Turfjs/turf/issues"
},
"homepage": "https://github.com/Turfjs/turf",
"repository": {

@@ -33,16 +27,22 @@ "type": "git",

],
"author": "Turf Authors",
"contributors": [
"Dane Springmeyer <@springmeyer>",
"Stepan Kuzmin <@stepankuzmin>",
"Denis Carriere <@DenisCarriere>"
"main": "dist/js/index.js",
"module": "dist/es/index.js",
"types": "index.d.ts",
"sideEffects": false,
"files": [
"dist",
"index.d.ts"
],
"license": "MIT",
"bugs": {
"url": "https://github.com/Turfjs/turf/issues"
"scripts": {
"bench": "npm-run-all prepare bench:run",
"bench:run": "node bench.js",
"docs": "node ../../scripts/generate-readmes",
"posttest": "node -r esm ../../scripts/validate-es5-dependencies.js",
"prepare": "rollup -c ../../rollup.config.js",
"test": "npm-run-all prepare test:*",
"test:tape": "node -r esm test.js",
"test:types": "tsc --noEmit types.ts"
},
"homepage": "https://github.com/Turfjs/turf",
"devDependencies": {
"@std/esm": "*",
"@turf/truncate": "^5.1.5",
"@turf/truncate": "^6.2.0-alpha.0",
"benchmark": "*",

@@ -55,9 +55,6 @@ "load-json-file": "*",

"dependencies": {
"@turf/helpers": "^5.1.5",
"@turf/invariant": "^5.1.5"
"@turf/helpers": "^6.2.0-alpha.0",
"@turf/invariant": "^6.2.0-alpha.0"
},
"@std/esm": {
"esm": "js",
"cjs": true
}
"gitHead": "23b651deaa1ca6a0960d0142aea620b7cc6a076d"
}

@@ -7,12 +7,12 @@ # @turf/great-circle

Calculate great circles routes as [LineString](https://tools.ietf.org/html/rfc7946#section-3.1.4)
Calculate great circles routes as [LineString][1]
**Parameters**
- `start` **[Coord](https://tools.ietf.org/html/rfc7946#section-3.1.1)** source point feature
- `end` **[Coord](https://tools.ietf.org/html/rfc7946#section-3.1.1)** destination point feature
- `options` **[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)** Optional parameters (optional, default `{}`)
- `options.properties` **[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)** line feature properties (optional, default `{}`)
- `options.npoints` **[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)** number of points (optional, default `100`)
- `options.offset` **[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)** offset controls the likelyhood that lines will
- `start` **[Coord][2]** source point feature
- `end` **[Coord][2]** destination point feature
- `options` **[Object][3]** Optional parameters (optional, default `{}`)
- `options.properties` **[Object][3]** line feature properties (optional, default `{}`)
- `options.npoints` **[number][4]** number of points (optional, default `100`)
- `options.offset` **[number][4]** offset controls the likelyhood that lines will
be split which cross the dateline. The higher the number the more likely. (optional, default `10`)

@@ -32,4 +32,16 @@

Returns **[Feature](https://tools.ietf.org/html/rfc7946#section-3.2)&lt;[LineString](https://tools.ietf.org/html/rfc7946#section-3.1.4)>** great circle line feature
Returns **[Feature][5]&lt;[LineString][6]>** great circle line feature
[1]: https://tools.ietf.org/html/rfc7946#section-3.1.4
[2]: https://tools.ietf.org/html/rfc7946#section-3.1.1
[3]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object
[4]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number
[5]: https://tools.ietf.org/html/rfc7946#section-3.2
[6]: https://tools.ietf.org/html/rfc7946#section-3.1.4
<!-- This file is automatically generated. Please don't edit it directly:

@@ -36,0 +48,0 @@ if you find an error, edit the source file (likely index.js), and re-run

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc