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.
terraformer
Advanced tools
Terraformer is a small javascript library for working with GeoJSON. It is designed to be fast lightweight and usable in large numbers of environments including, browsers, AMD (require.js or Dojo), Node.js and inside Web Workers.
addVertex
Gizipped and minified Terraformer comes to about 6kb.
Terraformer on Node.js is split into multiple small packages for easy consumption.
$ npm install terraformer
$ npm install terraformer-rtree
$ npm install terraformer-wkt-parser
$ npm install terraformer-arcgis-parser
Tests are written in Jasmine and can be run through $ grunt
or $ npm install
then $ npm test
. To run the tests run the following commands to setup PhantomJS and Grunt...
$ npm install grunt -g
$ brew install phantomjs
Then run the tests with $ grunt
which will buld all the files and then run the tests. You can also run $ grunt watch
which will run the tests when source files change.
Running the $ grunt build
command will build the libraries to dist/node
and dist/browser
. If you want to build with a different version number run $ grunt build-versioned
.
Terraformer.GeoStore
new Terraformer.Stores.Memory
new Terraformer.Stores.LocalStorage
new Terraformer.Stores.WebSQL
new Terraformer.Stores.PostGIS
Terraformer.Tools.isMercator
and Terraformer.Tools.isGeographic
new Terraformer.Position()
new Terraformer.Point()
new Terraformer.MultiPoint()
new Terraformer.LineString()
new Terraformer.MultiLineString()
new Terraformer.Polygon()
new Terraformer.MultiPolygon()
new Terraformer.Feature()
new Terraformer.FeatureCollection()
new Terraformer.GeometryCollection()
new Terraformer.Circle()
new Terraformer.ArcGIS.parse(arcgis);
new Terraformer.ArcGIS.to(geojson);
new Terraformer.WKY.parse(wkt);
new Terraformer.RTree(json);
new Terraformer.GeoStore(store);
new Terraformer.Stores.Local(namespace);
new Terraformer.Stores.Memory(namespace);
new Terraformer.Stores.WebSQL(namespace);
new Terraformer.Stores.PostGIS(namespace);
// Does shape one contain shape 2?
Terraformer.Tools.contains(shape1, shape2)
// Does shape one intersect shape 2?
Terraformer.Tools.intersects(shape1, shape2);
// Creates a 32 point polygon representing a circle
Terraformer.Tools.createCircle([x,y], radius, steps=64);
FAQs
A Geo-toolkit built in Javascript.
We found that terraformer 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.