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

@turf/polygon-to-linestring

Package Overview
Dependencies
Maintainers
4
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@turf/polygon-to-linestring - npm Package Compare versions

Comparing version 4.5.2 to 4.6.0

10

index.js

@@ -15,10 +15,4 @@ var getCoords = require('@turf/invariant').getCoords;

* @example
* var poly = {
* "type": "Feature",
* "properties": {},
* "geometry": {
* "type": "Polygon",
* "coordinates": [[[125, -30], [145, -30], [145, -20], [125, -20], [125, -30]]]
* }
* }
* var poly = turf.polygon([[[125, -30], [145, -30], [145, -20], [125, -20], [125, -30]]]);
*
* var line = turf.polygonToLineString(poly);

@@ -25,0 +19,0 @@ *

6

package.json
{
"name": "@turf/polygon-to-linestring",
"version": "4.5.2",
"version": "4.6.0",
"description": "turf polygon-to-linestring module",

@@ -36,5 +36,5 @@ "main": "index.js",

"dependencies": {
"@turf/helpers": "^4.5.2",
"@turf/invariant": "^4.5.2"
"@turf/helpers": "^4.6.0",
"@turf/invariant": "^4.6.0"
}
}

@@ -15,10 +15,4 @@ # @turf/polygon-to-linestring

```javascript
var poly = {
"type": "Feature",
"properties": {},
"geometry": {
"type": "Polygon",
"coordinates": [[[125, -30], [145, -30], [145, -20], [125, -20], [125, -30]]]
}
}
var poly = turf.polygon([[[125, -30], [145, -30], [145, -20], [125, -20], [125, -30]]]);
var line = turf.polygonToLineString(poly);

@@ -25,0 +19,0 @@

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