{"id":19501102,"url":"https://github.com/gitbookio/geo-utils","last_synced_at":"2025-08-28T04:33:11.363Z","repository":{"id":25116987,"uuid":"28538528","full_name":"GitbookIO/geo-utils","owner":"GitbookIO","description":"Utilities to get countries, languages and US states","archived":false,"fork":false,"pushed_at":"2015-09-27T15:57:00.000Z","size":150,"stargazers_count":9,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-19T10:22:42.633Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GitbookIO.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-12-27T14:30:04.000Z","updated_at":"2022-11-28T16:20:50.000Z","dependencies_parsed_at":"2022-08-20T16:20:19.792Z","dependency_job_id":null,"html_url":"https://github.com/GitbookIO/geo-utils","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GitbookIO%2Fgeo-utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GitbookIO%2Fgeo-utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GitbookIO%2Fgeo-utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GitbookIO%2Fgeo-utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GitbookIO","download_url":"https://codeload.github.com/GitbookIO/geo-utils/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250912660,"owners_count":21506865,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T22:11:10.549Z","updated_at":"2025-04-25T23:30:52.989Z","avatar_url":"https://github.com/GitbookIO.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Geo Utilities\n\n[![NPM version](https://badge.fury.io/js/geo-utils.svg)](http://badge.fury.io/js/geo-utils)\n\nThis node package contains multiple utilies to manage GEO data such as countries, languages and US states.\n\n### How to install it?\n\n```\n$ npm install geo-utils\n```\n\n### How to use it?\n\nInclude the library:\n\n```js\nvar geo = require(\"geo-utils\");\n```\n\nCountries:\n\n```js\nvar countries = geo.countries;\n\n// List of all countries\ncountries.LIST;\n\n// Get a country\ncountries.get(\"FR\");\n```\n\nLanguages:\n\n```js\nvar languages = geo.languages;\n\n// List of all languages\nlanguages.LIST;\n\n// Get a language\nlanguages.get(\"fr\");\n```\n\nUS States:\n\n```js\nvar usstates = geo.usstates;\n\n// List of all US states\nusstates.LIST;\n\n// Get a US state\nusstates.get(\"CA\");\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgitbookio%2Fgeo-utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgitbookio%2Fgeo-utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgitbookio%2Fgeo-utils/lists"}