1.0.5 • Published 7 months ago

numberify-text v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

Numberify-Text

Numberify Text is a JavaScript library that converts numbers written in text form to their numeric equivalents in various languages.

Installation

npm install numberify-text

Usage

import { numberifyText } from 'numberify-text';

Then you can use the numberifyText method to convert the numbers written in text inside a string to their numeric equivalents.

const sentence = "I have three apples and four oranges in ten boxes";
const result = numberifyText(sentence, 'en');

console.log(result); // Output: "I have 3 apples and 4 oranges in 10 boxes"

This library can handle numbers up to the billions, making it versatile for various applications.

const sentence = "there are three cats in two million seven hundred fifty thousand thirty-two houses";
const result = numberifyText(sentence, 'en');

console.log(result); // Output: "there are 3 cats in 2750032 houses"

Supported Languages

  • English (en)
  • Spanish (es)

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Creator

License

MIT

1.0.5

7 months ago

1.0.3

7 months ago

1.0.1

7 months ago

1.0.0

7 months ago