@arevs/data
v0.1.21
Published
All-in-one aggregate package for the @arevs data packages
Readme
@arevs/data
The all-in-one package for the full @arevs/* data surface.
Install
npm install @arevs/dataWhat it includes
- Countries, cities, states, currencies, continents, and languages
- Phone codes and timezones
- Flag metadata and asset URLs
- Country-sharded place selector helpers
- World map and country map helpers
- Moon phase and season helpers
- Curated planets, moons, stars, galaxies, and Milky Way data
- Shared geography utilities
Usage
import {
countries,
flagData,
getCountryByCode,
getFlagSvgUrl,
getPlacesByCountry,
getWorldMapSvg,
getMoonPhase,
planets,
} from "@arevs/data";
const malta = getCountryByCode("MT");
const flagUrl = getFlagSvgUrl("MT");
const places = await getPlacesByCountry("MT");
const worldMap = getWorldMapSvg();
const moonPhase = getMoonPhase(new Date());Focused packages
@arevs/geo@arevs/flags@arevs/places@arevs/maps@arevs/astronomy@arevs/space
Docs: https://arevdata.com
Repository: https://github.com/silvandiepen/arev
