Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
turf-invariant
Advanced tools
enforce expectations about inputs to turf
geojsonType(value, type, name)
Enforce expectations about types of GeoJSON objects for Turf.
parameter | type | description |
---|---|---|
value | GeoJSON | any GeoJSON object |
type | string | expected GeoJSON type |
name | String | name of calling function |
featureOf(feature, types, name)
Enforce expectations about types of Feature inputs for Turf. Internally this uses geojsonType to judge geometry types.
parameter | type | description |
---|---|---|
feature | Feature | a feature with an expected geometry type |
types | string | expected GeoJSON type |
name | String | name of calling function |
collectionOf(featurecollection, type, name)
Enforce expectations about types of FeatureCollection inputs for Turf. Internally this uses geojsonType to judge geometry types.
parameter | type | description |
---|---|---|
featurecollection | FeatureCollection | a featurecollection for which features will be judged |
type | string | expected GeoJSON type |
name | String | name of calling function |
Requires nodejs.
$ npm install turf-invariant
$ npm test
FAQs
enforce expectations about inputs to turf
The npm package turf-invariant receives a total of 10,643 weekly downloads. As such, turf-invariant popularity was classified as popular.
We found that turf-invariant 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
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.