https://github.com/farism/mint-countries
Countries data for Mint lang
https://github.com/farism/mint-countries
mint mint-lang
Last synced: 5 months ago
JSON representation
Countries data for Mint lang
- Host: GitHub
- URL: https://github.com/farism/mint-countries
- Owner: farism
- License: mit
- Created: 2023-09-10T19:34:34.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-18T01:19:17.000Z (over 2 years ago)
- Last Synced: 2025-06-12T15:53:48.696Z (about 1 year ago)
- Topics: mint, mint-lang
- Language: Mint
- Homepage: https://farism.github.io/mint-countries/
- Size: 11.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Mint Countries
[](https://github.com/farism/mint-countries/actions/workflows/ci.yml)
[Mint](https://mint-lang.com/) helpers for country and state data
# API
The API is very simple right now and consists of three helpers:
## `Countries.all`
Returns an array of all countries data
## `Countries.fromCode(code : String)`
Returns a single country from a country code
## `Countries.states(code : String)`
Returns an array of states filtered by country code