zellige.js
Version:
A Moroccan utility library for working with CIN, phone numbers, currency, addresses, dates, and more.
36 lines (35 loc) • 1.3 kB
JavaScript
;
/**
* Formatter module for various data formatting operations
* @module formatters
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.CINFormattingError = exports.CINFormatter = exports.getAllCINFormats = exports.formatCIN = exports.formatters = void 0;
/**
* Import CIN formatting utilities
*/
const cin_1 = require("./cin");
Object.defineProperty(exports, "formatCIN", { enumerable: true, get: function () { return cin_1.formatCIN; } });
Object.defineProperty(exports, "getAllCINFormats", { enumerable: true, get: function () { return cin_1.getAllCINFormats; } });
Object.defineProperty(exports, "CINFormatter", { enumerable: true, get: function () { return cin_1.CINFormatter; } });
Object.defineProperty(exports, "CINFormattingError", { enumerable: true, get: function () { return cin_1.CINFormattingError; } });
/**
* Namespace containing all CIN-related formatting functions
*/
const cin = {
format: cin_1.formatCIN,
getAllFormats: cin_1.getAllCINFormats,
Formatter: cin_1.CINFormatter,
FormattingError: cin_1.CINFormattingError,
};
/**
* Collection of all formatter namespaces
*/
exports.formatters = {
cin,
};
/**
* Default export providing access to all formatter functions
* @default
*/
exports.default = exports.formatters;