Research
Security News
Kill Switch Hidden in npm Packages Typosquatting Chalk and Chokidar
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
featureservice
Advanced tools
Get all features from an Esri Feature Service
A little module that extracts every feature from an Esri Feature Service. The real power in this module is that it's designed to page over a service and extract every single feature no matter what ArcGIS Server version the data is hosted on.
npm install featureservice
var FeatureService = require('featureservice')
// a url to a feature service
var url = 'http://....../FeatureServer/0'
var service = new FeatureService(url, options)
service.pages(function (err, pages) {
/* will give you links to all pages of data in the service*/
})
An object passed as the second parameter when initializing a service
Get the information describing the service itself
Get all the ids in a feature service layer
Get the json metadata for a service layer
Get statistics for a field and an array of stats.
service.statistics('id', ['min', 'max'], function (err, stats) {
console.log(stats.features)
})
Returns an array of page urls that would get every feature in the service
A browser ready build of this module is in dist/featureservice.min.js
.
<html>
<script src="dist/featureservice.min.js"></script>
<script>
var service = new FeatureService('http://koop.dc.esri.com/socrata/seattle/2tje-83f6/FeatureServer/0', {})
service.statistics('id', ['max'], function (err, stats) {
console.log(err, stats)
})
</script>
</html>
FAQs
Get all features from an Esri Feature Service
The npm package featureservice receives a total of 18 weekly downloads. As such, featureservice popularity was classified as not popular.
We found that featureservice demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.