0.0.6 • Published 3 years ago

number_to_khmer_word v0.0.6

Weekly downloads
7
License
MIT
Repository
github
Last release
3 years ago

Description

Javascript and Typescript library for converting Arabic numerals to Khmer words

Installation

npm i number_to_khmer_word

Basic Usage

Include Module

import { numberToWord } from 'number_to_khmer_word';

const words = numberToWord(input: number | string)

// Example
numberToWord(100_000)
numberToWord('1000')

For Currency Mode

CurrencyType = 'USD', 'KHR'

import { currencyToWord } from 'number_to_khmer_word';

const words = currencyToWord(input: number | string, currency: currencyType)

// Example
currencyToWord(100_000, 'USD')
currencyToWord('1000', 'KHR')

TODO

  • Allow copy paste but show error toast if invalid number (insert in series)
  • Animate text change
0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago