Socket
Socket
Sign inDemoInstall

turf-inside

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

turf-inside - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

.travis.yml

2

package.json
{
"name": "turf-inside",
"version": "0.1.1",
"version": "0.1.2",
"description": "turf inside module",

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

turf-inside
===========
[![Build Status](https://travis-ci.org/Turfjs/turf-inside.svg)](https://travis-ci.org/Turfjs/turf-inside)
Checks to see if a point is inside of a polygon. The polygon can be convex or concave.
```js
var inside = require('turf-inside')
var point = require('turf-point')
var polygon = require('turf-polygon')
var poly = polygon([[[0,0], [50, 50], [0,100], [100,100], [100,0]]])
var pt = point(75, 75)
var isInside = inside(pt, poly)
console.log(isInside) // true
})
```

Sorry, the diff of this file is not supported yet

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