Socket
Socket
Sign inDemoInstall

turf-count

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

turf-count - npm Package Compare versions

Comparing version 0.0.4 to 0.1.0

10

package.json
{
"name": "turf-count",
"version": "0.0.4",
"version": "0.1.0",
"description": "turf count module",

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

"devDependencies": {
"tape": "^2.13.1",
"tape": "^2.13.3",
"turf-featurecollection": "^0.1.0",
"turf-point": "^0.1.0",
"turf-polygon": "^0.1.0",
"turf-point": "^0.1.1",
"turf-polygon": "^0.1.1",
"deep-freeze": "0.0.1"
},
"dependencies": {
"turf-inside": "^0.1.1"
"turf-inside": "^0.1.3"
}
}

@@ -7,3 +7,25 @@ turf-count

###Install
```sh
npm install turf-count
```
###Parameters
|name|description|
|---|---|
|polyFC|a FeatureCollection of polygons|
|pointFC|a FeatureCollection of points|
|countField|field to append to the polygon features representing point counts|
###Usage
```js
count(polyFC, pointFC, countField)
```
###Example
```js
var point = require('turf-point')

@@ -10,0 +32,0 @@ var polygon = require('turf-polygon')

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