lang-number-converter

1.0.4 • Public • Published

lang-number-converter

Status GitHub Issues GitHub Pull Requests License


📝 Table of Contents

🧐 About

It only replaces the numbers in the passed string with the numbers of the selected language.

🎈 Usage

To use the converter lang :

import { englishToPersian , persianToEnglish } from "lang-number-converter"

console.log(englishToPersian("Tom327EI"))
// output => "Tom۳۲۷EI"

console.log(persianToEnglish("۳۲۷E I50۲"))
// output => "327E I502"
import { splitPrice } from "lang-number-converter"

console.log(splitPrice("2000000"))
// output => "2,000,000"

console.log(persianToEnglish("۳۲۷۳۲۲۳۲"))
// output => "32,732,232"

Installing

to install, use this command :

npm install lang-number-converter

Package Sidebar

Install

npm i lang-number-converter

Weekly Downloads

1

Version

1.0.4

License

MIT

Unpacked Size

4.15 kB

Total Files

4

Last publish

Collaborators

  • dinonow