Developer launches NPM package with verified country, state, and district data

A developer has published a new open-source NPM package called 'world-country-state-district' to address inaccuracies and performance issues found in existing geographic data libraries. Popular alternatives were found to return incorrect administrative subdivisions, such as listing over 15 entities for Sri Lanka instead of its official 9 provinces. The new package uses data verified against official government sources, covering countries including India, Sri Lanka, and the UK with their correct administrative structures. Rather than loading an 8MB+ database into memory all at once, the library dynamically fetches only the required country file, keeping individual data files as small as 2KB. The package is available on the NPM registry and its source code is publicly accessible on GitHub.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in