프로젝트
GitHub에서 보기
SonoJS/SonoJS-geo
소개
A lightweight JavaScript and TypeScript package providing country, state, and city data with simple APIs.
웹 및 앱 개발측정된 스타 증가
- in 24h
- 0
- in 7 days
- 기록 수집 중
- in 15 days
- 기록 수집 중
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Original@sonojs/geo
Countries, states, and cities for JavaScript. Lazy-loaded shards, async API, TypeScript types.
Links
Install
npm install @sonojs/geo
Usage
import { getCountryByIso2, getCitiesByCountry } from "@sonojs/geo";
const country = await getCountryByIso2("JP");
const cities = await getCitiesByCountry("JP");
Browser or custom hosting:
import { configureGeo, getCountryByIso2 } from "@sonojs/geo";
configureGeo({
dataBaseUrl: new URL("./node_modules/@sonojs/geo/data/", import.meta.url).href,
});
await getCountryByIso2("JP");
License
Package code: MIT (LICENSE). Geographic data: ODbL 1.0 (NOTICE.md, ODbL-1.0.txt) from dr5hn/countries-states-cities-database.
관련 프로젝트 살펴보기
불러오는 중…