Skip to main content
Helpful?

Overview AMD

What is AMD?​

Asynchronous module definition (AMD) is a specification for the programming language JavaScript.
It defines an application programming interface (API) that defines code modules and their dependencies, and loads them asynchronously if desired.

Learn more here

Using the country-cities in AMD Module usage​

Import​

const { countries, states, cities } = require('country-cities');

Learn more here

Countries​

const countries = coutries.all();

States​

const states = states.all();

Cities​

const cities = cities.all();
Helpful?