degachejs
Version:
A Tunisian utility library for working with CIN, phone numbers, addresses, and more
57 lines (56 loc) • 1.1 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.COUNTRY_CODE = exports.LOCALE = exports.CURRENCY = exports.MOBILE_PREFIXES = exports.GOVERNORATES = void 0;
/**
* Tunisian governorates and their codes
*/
exports.GOVERNORATES = {
ARIANA: "12",
BEJA: "21",
BEN_AROUS: "13",
BIZERTE: "17",
GABES: "81",
GAFSA: "71",
JENDOUBA: "22",
KAIROUAN: "41",
KASSERINE: "42",
KEBILI: "73",
KEF: "23",
MAHDIA: "53",
MANOUBA: "14",
MEDENINE: "82",
MONASTIR: "52",
NABEUL: "15",
SFAX: "61",
SIDI_BOUZID: "43",
SILIANA: "24",
SOUSSE: "51",
TATAOUINE: "83",
TOZEUR: "72",
TUNIS: "11",
ZAGHOUAN: "16",
};
/**
* Mobile carrier prefixes
*/
exports.MOBILE_PREFIXES = {
OOREDOO: ["2", "5"],
ORANGE: ["4", "5"],
TELECOM: ["2", "9"],
};
/**
* Currency code and symbol
*/
exports.CURRENCY = {
CODE: "TND",
SYMBOL: "د.ت",
NAME: "Tunisian Dinar",
};
/**
* Date locale
*/
exports.LOCALE = "ar-TN";
/**
* Country calling code
*/
exports.COUNTRY_CODE = "+216";