Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
georender-style2png
Advanced tools
create a texture png from a georender stylesheet
var fs = require('fs')
var makePNG = require('fast-png')
var makeTex = require('georender-style2png')
var data = makeTex({
stylesheet: require('./style.json'),
features: require('georender-pack/features.json'),
defaults: require('georender-style2png/defaults.json')
})
var png = makePNG.encode(data)
fs.writeFileSync('texture.png', png)
usage: georender-style2png {OPTIONS} [stylesheet file]
options:
--stylesheet, -s JSON file with an object specifying
georender styles.
--features, -f JSON file with OSM features mapped
to number values. default:
georender-pack/features.json
--defaults, -d JSON file with default style settings.
default: defaults.json
--outfile, -o Write PNG data to this file.
for example, to create a png image from a stylesheet called style.json:
georender-style2png style.json -o style.png
var makeTex = require('georender-style2png')
var settings = require('georender-style2png')
create a Uint8Array of image texture data
from opts
:
opts.stylesheet
- rules for visual display of OSM featuresopts.features
- OSM features mapped to number valuesopts.defaults
- default style settingssettings.zoomStart
- lowest zoom level (eg: 1)settings.zoomEnd
- highest zoom level (eg: 21)settings.heights
- height of point, line, area sections in pixelssettings.ranges
- height of point, line, area sections in [0,1] spaceto get the command line version:
npm install -g georender-style2png
to get the library:
npm install georender-style2png
MIT
FAQs
create a texture png from a georender stylesheet
We found that georender-style2png 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.