
Research
Namastex.ai npm Packages Hit with TeamPCP-Style CanisterWorm Malware
Malicious Namastex.ai npm packages appear to replicate TeamPCP-style Canister Worm tradecraft, including exfiltration and self-propagation.
idris-geojson
Advanced tools
Utilities for querying and handling GeoJSON data
npm install idris-geojson
var ig = require('idris-geojson')
.selectProp( collection, object, callback )
ig.selectProp(countriesCollection, {continent: 'Europe'}, function(featureCollection) {
// returns a featureCollection
})
.selectOneProp( collection, object, callback )
ig.selectOneProp(countriesCollection, {continent: 'Europe'}, function(feature) {
// returns a feature
})
var bbox = [[min_longitude, min_latitude],[max_longitude, max_latitude]]
.selectWithinBbox( collection, bbox, callback )
Cuts the features to fit inside the bounding box
ig.selectWithinBbox(countriesCollection, [[-12,35],[26,63]], function(feature) {
// returns a featureCollection
})
.selectOverlapBbox( collection, bbox, callback )
Keeps features that overlap with the bounding box
ig.selectOverlapBbox(countriesCollection, [[-12,35],[26,63]], function(feature) {
// returns a featureCollection
})
.bboxFromColl( collection, callback )
Get the bounding box of a collection
ig.bboxFromColl(collection, function(bbox) {
// returns a bounding box
})
.bboxFromFeat( feature, callback )
Get the bounding box of a feature
ig.bboxFromFeat(collection, function(bbox) {
// returns a bounding box
})
.featFromBbox( bbox, callback )
Returns a polygon feature
ig.featFromBbox(bbox, function(feature) {
// returns a feature
})
.divBy3Geotypes( collection , callback )
Divides the collection into three geometry types (points, linestrings and polygons). MultiPoint is in "Points", MultiLineString is in "LineStrings" and MultiPolygon is in "Polygons"
ig.divBy3Geotypes(collection, function(arrayOfCollections) {
// returns a an array of featureCollection
})
The returned array contains objects with geoType and collection and could look like this
[ { geoType: 'Points',
collection: { type: 'FeatureCollection', features: [Object] } },
{ geoType: 'LineStrings',
collection: { type: 'FeatureCollection', features: [Object] } },
{ geoType: 'Polygons',
collection: { type: 'FeatureCollection', features: [Object] } } ]
.divBy6Geotypes( collection , callback )
Divides the collection into all six geometry types (points, linestrings, polygons, multipoints, multilinestrings and multipolygons).
ig.divBy6Geotypes(collection, function(arrayOfCollections) {
// returns a an array of featureCollection
})
The returned array contains objects with geoType and collection and could look like this
[ { geoType: 'Points',
collection: { type: 'FeatureCollection', features: [Object] } },
{ geoType: 'MultiLineStrings',
collection: { type: 'FeatureCollection', features: [Object] } },
{ geoType: 'LineStrings',
collection: { type: 'FeatureCollection', features: [Object] } } ]
.separateValidFeatures( collection, callback )
Separate valid features from invalid features
ig.separateValidFeatures(collection, function(valid, invalid) {
// returns two featureCollections
//
// features in the "invalid" collection have an error property with the error message
})
.onlyValidFeatures( collection, callback )
Get only the valid features of a collection.
ig.onlyValidFeatures(collection, function(featureCollection) {
// returns a collection with only valid features
})
FAQs
Utilities to query GeoJSON
The npm package idris-geojson receives a total of 11 weekly downloads. As such, idris-geojson popularity was classified as not popular.
We found that idris-geojson demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Malicious Namastex.ai npm packages appear to replicate TeamPCP-style Canister Worm tradecraft, including exfiltration and self-propagation.

Product
Explore exportable charts for vulnerabilities, dependencies, and usage with Reports, Socket’s new extensible reporting framework.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.