Skip to Content
Version 0.0.1 is released 🎉
DocumentationContinents

Continents Data

Get All Continents

This gives you an array of all contients.

continents.ts
import { Continents } from 'countries-geo'; console.log(Continents.getAll); // Logs all continents (e.g., [{ iso: "AF", name: "Africa" }, ...])

By default this is sorted by name.

Get All Continents sorted by isoCode

This gives you an array of all contients specifically sorted by isoCode.

continents.ts
import { Continents } from 'countries-geo'; console.log(Continents.sortByIsoCode); // Logs all continents (e.g., [{ iso: "AF", name: "Africa" }, ...])

By default this is sorted by iso.

Last updated on