Skip to content

namnh240795/number-to-text-vietnamese

Repository files navigation

Installation

yarn add number-to-text-vietnamese

npm install number-to-text-vietnamese

How to use

Support integer to text only

  import { getText } from 'number-to-text-vietnamese';
  getText(109231123456);
Result: một trăm linh chín tỷ hai trăm ba mươi mốt triệu một trăm hai mươi ba nghìn bốn trăm năm mươi sáu

Support integer to text only with seperator

  import { getText } from 'number-to-text-vietnamese';
  getText(109231123456, ',');
Result: một trăm linh chín tỷ, hai trăm ba mươi mốt triệu, một trăm hai mươi ba nghìn, bốn trăm năm mươi sáu

About

Chuyển đổi số thành chữ tiếng Việt

Resources

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •