Socket
Socket
Sign inDemoInstall

turf-convex

Package Overview
Dependencies
Maintainers
2
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

turf-convex

turf-convex =============== [![build status](https://secure.travis-ci.org/Turfjs/turf-convex.png)](http://travis-ci.org/Turfjs/turf-convex)


Version published
Weekly downloads
12K
decreased by-5.41%
Maintainers
2
Weekly downloads
 
Created
Source

turf-convex

build status

Takes a set of points and returns a convex hull polygon.

###Install

npm install turf-convex

###Parameters

namedescription
pointsA FeatureCollection of Point Features

###Usage

convex(pts)

###Example

var convex = require('turf-convex')
var fs = require('fs')

var pts = JSON.parse(fs.readFileSync('/path/to/pts.geojson'))
  
var hull = convex(pts)

console.log(hull)

Keywords

FAQs

Package last updated on 08 Aug 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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