npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

simple-world-map

v1.2.0

Published

CLI tool to generate SVG maps by region

Readme

simple-world-map

CLI tool to generate SVG world maps from Natural Earth 110m data. Mercator projection. Zero dependencies.

Install

npm install -g simple-world-map
# or
npx simple-world-map <region>

Usage

By region

simple-world-map east-asia > map.svg
simple-world-map world > map.svg

# List available regions
simple-world-map --list

Available regions: world, east-asia, southeast-asia, europe, north-america, south-america, africa, middle-east, oceania

By coordinates

# Center on Tokyo, 15° radius
simple-world-map --center 35.68,139.69 --radius 15 > tokyo.svg

# Default radius is 20°
simple-world-map --center 13.75,100.52 > bangkok.svg

Highlight countries

# Fill per country (ISO 3166-1 alpha-3, separated by ;)
simple-world-map east-asia --hl "JPN:#ff5555;KOR:#5555ff;CHN:#55cc55" > map.svg

# Fill + stroke per country (separated by |)
simple-world-map east-asia --hl "JPN:#ff5555|#0000ff;KOR:#5555ff" > map.svg

# Fill + stroke + stroke width per country
simple-world-map east-asia --hl "JPN:#ff5555|#0000ff|2;KOR:#5555ff" > map.svg

# rgba values
simple-world-map east-asia --hl "JPN:rgba(255,85,85,0.5)|rgba(0,0,255,0.8)" > map.svg

# Omit color for default red
simple-world-map east-asia --hl "JPN;KOR" > map.svg

Styling

# Custom fill and stroke
simple-world-map east-asia --fill "#1a1a2e" --stroke "#e94560" > map.svg

# No borders
simple-world-map east-asia --no-stroke > map.svg

# Custom stroke width (px, default 0.5)
simple-world-map east-asia --sw 1 > map.svg

# Combine options
simple-world-map east-asia --no-stroke --hl "JPN:#ff5555" > map.svg

Options

| Option | Alias | Description | |---|---|---| | --center <lat,lon> | | Center coordinates (latitude,longitude) | | --radius <degrees> | | View radius (default: 20) | | --fill <color> | | Fill color (default: #d4d4d4) | | --stroke <color> | | Stroke color (default: #333) | | --stroke-width <n> | --sw | Stroke width in px (default: 0.5) | | --no-stroke | | Hide country borders | | --highlight <spec> | --hl | Highlight countries (ISO:fill\|stroke\|width;...) | | --list | | List available regions | | --help | -h | Show help |

Output

  • SVG string to stdout
  • vector-effect="non-scaling-stroke" for zoom-independent stroke width
  • Each path has data-name (country name) and data-iso (ISO alpha-3) attributes

Data

Bundled Natural Earth 110m Admin 0 Countries. Public domain.

License

ISC