aboutsummaryrefslogtreecommitdiff
path: root/src/environment/environment.ts
blob: 18434f842f1761f61bbdc20f1474cbeec1a7214a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import home_dir from "https://deno.land/x/[email protected]/home_dir/mod.ts";
import { join } from "https://deno.land/[email protected]/path/mod.ts";

export const environment = {
  // Backend from where the information is fetched
  baseUrl: "https://restcountries.com/v3.1/",
  // Update cache if it has been longer than given DAYS since last sync
  syncInterval: 7,
  // Directory where country information should be stored.
  cacheDir: join(home_dir() as string, ".cache", "countryfetch"),
  // Determines the size of ASCII art flag size
  flagWidth: 40,
  // Fields that should be fetched from API
  queries:
    "all?fields=name,capital,currencies,population,flag,languages,region,subregion,timezones,latlng,capitalInfo,tld,flags",
};