UNPKG

tanisa

Version:

A utility to convert Malagasy 🇲🇬 numbers, dates, and times into their word representations.

12 lines (11 loc) • 498 B
import { TanisaOptions, TanisaDateOptions, TanisaTimeOptions } from './interface'; export declare class Tanisa { toWords(number: number | string, options?: TanisaOptions): string; toDate(input: string | Date | number, options?: TanisaDateOptions): string; toTime(input: string | Date | number, options?: TanisaTimeOptions): string; private convertInteger; private formatLargeNumber; private convertBelowThousand; private convertTeens; private convertBelowHundred; }