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.
turf-polygon
Advanced tools
turf polygon module
turf.polygon(rings, properties)
Takes an array of LinearRings and optionally an Object with properties and returns a GeoJSON Polygon feature.
parameter | type | description |
---|---|---|
rings | Array.<Array.> | - an array of LinearRings |
properties | Object | - an optional properties object |
var polygon = turf.polygon([[
[-2.275543, 53.464547],
[-2.275543, 53.489271],
[-2.215118, 53.489271],
[-2.215118, 53.464547],
[-2.275543, 53.464547]
]], { name: 'poly1', population: 400});
//=polygon
//=polygon.properties
Requires nodejs.
$ npm install turf-polygon
$ npm test
FAQs
turf polygon module
The npm package turf-polygon receives a total of 3,606 weekly downloads. As such, turf-polygon popularity was classified as popular.
We found that turf-polygon demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 8 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.