@prazzol/currency-formatter
Version:
Format currency in Nepali and international styles with custom prefix support.
10 lines (9 loc) • 320 B
TypeScript
export type FormatType = 'nepali' | 'international' | 'locale';
export interface CurrencyFormatOptions {
locale?: string;
currency?: string;
prefix?: string;
showPrefix?: boolean;
format?: FormatType;
}
export declare function formatCurrency(amount: number, options?: CurrencyFormatOptions): string;