December 4, 2024   -   David Oyinbo

Country flags and currency package

Type-safe country and currency data with handy helpers for distances and lookups.

TypeScriptLibraryNPMGeographyCurrency

Overview

Provides countries, currencies, flags (unicode + SVG), capitals, dial codes, and simple geospatial utilities like distances and closest/farthest country queries. Zero dependencies and ships with TypeScript types.

Highlights

Data + Types

  • Strong TS types for Country, Currency, and Location
  • Country flags (unicode + SVG), capitals, dial codes
  • Handy methods: getCurrencies, getCountries, getCountriesBy, distanceBetweenLocations

Zero dependencies

  • Lightweight and tree-shakeable
  • Works via ESM import or CDN bundle
  • MIT-licensed

Minimal usage

import CountryAndCurrency from "@workmate/country-and-currency";

// Look up a currency by code
const mxn = CountryAndCurrency.getCurrencyBy("code", "MXN");
console.log(mxn?.symbol); // $

Other Projects

January 22, 2025

Auth module for Nuxt server apps

Auth module for Nuxt 3 server apps with local and social providers, tokens, middlewares, and typed composables.

TypeScriptNuxt 3Auth
June 1, 2022

iPay (Nuxt 3 Pet Project)

A simple Nuxt 3 site built to explore the Nuxt 3 ecosystem, routing, layouts, and component patterns.

Nuxt 3VuePet Project
May 13, 2024

Canvas Infinity & Circle Mouse

Pet project exploring HTML Canvas and JavaScript animations—drawing an infinity curve and a circle following the mouse.

JavaScriptHTML CanvasAnimation

Let's build something together

Available for senior engineering roles, consulting, and architecture reviews.

© 2026 David Oyinbo