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-reclass
Advanced tools
turf reclass module
turf.reclass(input, inField, outField, translations)
Takes a FeatureCollection, an input field, an output field, and an array of translations and outputs an identical FeatureCollection with the output field property populated.
parameter | type | description |
---|---|---|
input | FeatureCollection | a FeatureCollection of any type |
inField | string | the field to translate |
outField | string | the field in which to store translated results |
translations | Array. | an array of translations |
var points = turf.featurecollection([
turf.point([13.170547, 32.888669], {population: 200}),
turf.point([13.182048, 32.889533], {population: 600}),
turf.point([13.17398, 32.882182], {population: 100}),
turf.point([13.174324, 32.895011], {population: 200}),
turf.point([13.185825, 32.884344], {population: 300})
]);
// 0 to 200 will map to "small", 200 to 400 will map to "medium", 400 to 600 will map to "large"
var translations = [
[0, 200, "small"],
[200, 400, "medium"],
[400, 600, "large"]
];
var reclassed = turf.reclass(
points, 'population', 'size', translations);
//=reclassed
Requires nodejs.
$ npm install turf-reclass
$ npm test
FAQs
turf reclass module
The npm package turf-reclass receives a total of 42 weekly downloads. As such, turf-reclass popularity was classified as not popular.
We found that turf-reclass 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.
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.