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

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.2 to 0.0.3

2

package.json
{
"name": "turf-count",
"version": "0.0.2",
"version": "0.0.3",
"description": "turf count module",

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

@@ -19,8 +19,5 @@ var count = require('./')

var ptFC = featurecollection([pt1, pt2, pt3, pt4, pt5])
deepFreeze(ptFC)
deepFreeze(polyFC)
var counted = count(polyFC, ptFC, 'pt_count')
console.log(counted.features.map(function(f){return f.properties.pt_count}))
t.equal(counted.features[0].geometry.type, 'Polygon')

@@ -27,0 +24,0 @@ t.equal(counted.features[0].properties.pt_count, 2)

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