UNPKG

country-codes-list

Version:

List of codes per country (languages, calling codes, currency codes, etc) with full TypeScript support.

8 lines (7 loc) 334 B
/** * Replaces placeholders in a string with values from an object. * @param template - The string containing placeholders. * @param data - The object containing key-value pairs for replacement. * @returns The string with placeholders replaced by values. */ export default function supplant(template: string, data: any): string;