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

@turf/line-slice

Package Overview
Dependencies
Maintainers
2
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@turf/line-slice - npm Package Compare versions

Comparing version 3.0.15 to 3.0.16

20

package.json
{
"name": "@turf/line-slice",
"version": "3.0.15",
"version": "3.0.16",
"description": "",

@@ -11,3 +11,3 @@ "main": "index.js",

"type": "git",
"url": "https://github.com/Turfjs/turf-line-slice.git"
"url": "git://github.com/Turfjs/turf.git"
},

@@ -26,17 +26,17 @@ "keywords": [

"bugs": {
"url": "https://github.com/Turfjs/turf-line-slice/issues"
"url": "https://github.com/Turfjs/turf/issues"
},
"homepage": "https://github.com/Turfjs/turf-line-slice",
"homepage": "https://github.com/Turfjs/turf",
"devDependencies": {
"benchmark": "^1.0.0",
"tape": "^3.5.0",
"@turf/helpers": "^3.0.15"
"@turf/helpers": "^3.0.16"
},
"dependencies": {
"@turf/bearing": "^3.0.15",
"@turf/destination": "^3.0.15",
"@turf/distance": "^3.0.15",
"@turf/helpers": "^3.0.15",
"@turf/point-on-line": "^3.0.15"
"@turf/bearing": "^3.0.16",
"@turf/destination": "^3.0.16",
"@turf/distance": "^3.0.16",
"@turf/helpers": "^3.0.16",
"@turf/point-on-line": "^3.0.16"
}
}

@@ -1,6 +0,6 @@

# turf-line-slice
# @turf/line-slice
# lineSlice
Takes a [line](LineString), a start [Point](Point), and a stop point
Takes a [line](http://geojson.org/geojson-spec.html#linestring), a start [Point](http://geojson.org/geojson-spec.html#point), and a stop point
and returns a subsection of the line in-between those points.

@@ -13,5 +13,5 @@ The start & stop points don't need to fall exactly on the line.

- `point1` **Feature<Point>** starting point
- `point2` **Feature<Point>** stopping point
- `line` **(Feature<LineString> | LineString)** line to slice
- `point1` **[Feature](http://geojson.org/geojson-spec.html#feature-objects)<[Point](http://geojson.org/geojson-spec.html#point)>** starting point
- `point2` **[Feature](http://geojson.org/geojson-spec.html#feature-objects)<[Point](http://geojson.org/geojson-spec.html#point)>** stopping point
- `line` **([Feature](http://geojson.org/geojson-spec.html#feature-objects)<[LineString](http://geojson.org/geojson-spec.html#linestring)> | [LineString](http://geojson.org/geojson-spec.html#linestring))** line to slice

@@ -60,3 +60,3 @@ **Examples**

Returns **Feature<LineString>** sliced line
Returns **[Feature](http://geojson.org/geojson-spec.html#feature-objects)<[LineString](http://geojson.org/geojson-spec.html#linestring)>** sliced line

@@ -75,3 +75,3 @@ ---

```sh
$ npm install turf-line-slice
$ npm install @turf/line-slice
```

@@ -82,3 +82,3 @@

```sh
$ npm install turf
$ npm install @turf/turf
```
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