RunKit + npm: ascii-worldmap

node v10.24.1
endpointsharetweet
var asciiWorldmap = require("ascii-worldmap") // you can ignore the icon and label fields, logo defaults to "#", label is unused const markers = [ { label: "London", lon: -0.192098, lat: 51.610002, icon: "\x1b[31m#\x1b[39m" }, { label: "LA", lon: -118.441495, lat: 33.929047, icon: "\x1b[31m#\x1b[39m" }, { label: "CHCH", lon: 172.63623, lat: -43.532055, icon: "\x1b[31m#\x1b[39m" } ]; const config = { border: true, margin: 2, padding: 2 } asciiWorldmap.drawMap(markers, config);
Created from: https://npm.runkit.com/ascii-worldmap
Loading…