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

turf-sum

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

turf-sum - npm Package Compare versions

Comparing version 0.0.2 to 0.1.2

12

package.json
{
"name": "turf-sum",
"version": "0.0.2",
"version": "0.1.2",
"description": "turf sum module",

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

"devDependencies": {
"tape": "^2.13.1",
"tape": "^2.13.4",
"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"
},
"dependencies": {
"simple-statistics": "^0.8.0",
"turf-inside": "^0.1.1"
"simple-statistics": "^0.8.1",
"turf-inside": "^0.1.4"
}
}

@@ -7,3 +7,26 @@ turf-sum

###Install
```sh
npm install turf-sum
```
###Parameters
|name|description|
|---|---|
|polys|featurecollection of polygons|
|points|featurecollection of points|
|inField|field to map|
|outField|new field|
###Usage
```js
sum(polyFC, ptFC, inField, outField)
```
###Example
```js
var size = require('turf-sum')

@@ -10,0 +33,0 @@ var point = require('turf-point')

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