Security News
vlt Debuts New JavaScript Package Manager and Serverless Registry at NodeConf EU
vlt introduced its new package manager and a serverless registry this week, innovating in a space where npm has stagnated.
Performs a spatial join on a set of points from a set of polygons.
###Install
npm install turf-inside
###Parameters
name | description |
---|---|
points | A FeatureCollection of Point Features |
polygons | A FeatureCollection of Polygon Features |
polyID | id field on the polygons |
containingPolyID | id field to tag onto points that are in a corresponding polygon |
###Usage
tag(points, polygons, 'polyID', 'containingPolyID')
###Example
var tag = require('turf-tag')
var fs = require('fs')
t.load('./testIn/tagPoints.geojson', function(err, points){
t.load('./testIn/tagPolygons.geojson', function(err, polygons){
var pts = JSON.parse(fs.readFileSync('/path/to/pts.geojson'))
var polys = JSON.parse(fs.readFileSync('/path/to/polys.geojson'))
var tagged = tag(points, polygons, 'polyID', 'containingPolyID')
console.log(taggedPoints)
FAQs
turf tag module
The npm package turf-tag receives a total of 11,253 weekly downloads. As such, turf-tag popularity was classified as popular.
We found that turf-tag demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 9 open source maintainers collaborating on the project.
Did you know?
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.
Security News
vlt introduced its new package manager and a serverless registry this week, innovating in a space where npm has stagnated.
Security News
Research
The Socket Research Team uncovered a malicious Python package typosquatting the popular 'fabric' SSH library, silently exfiltrating AWS credentials from unsuspecting developers.
Security News
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.