mledoze / countries

World countries in JSON, CSV, XML and Yaml. Any help is welcome!
https://mledoze.github.io/countries/
Open Data Commons Open Database License v1.0
5.97k stars 1.27k forks source link

Add ESM support #469

Closed lunaneff closed 1 year ago

lunaneff commented 1 year ago

This PR adds ESM support to the JS module. This makes it possible to use it in most non-Node runtimes (see the import assertions rows) directly without an extra compilation step.

I also renamed the CommonJS file to make the difference between the two index files more clear.