0.4.0 • Published 3 years ago

currency-to-words v0.4.0

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

Currency To Words

Introduction

Converts Currency Numbers (including decimal points) into words.

Samples

  • 1 --> one dollar
  • 25.1 --> twenty-five dollars and ten cents
  • 0.01 --> zero dollars and one cent
  • 45100 --> forty-five thousand one hundred dollars

  • Custom currency

    • 25.1 --> twenty-five cedis and ten pesewas

Install

npm install currency-to-words --save

Usage

import { CurrencyToWords } from 'currency-to-words'
const words = CurrencyToWords(0.01);
const customCurrency = CurrencyToWords(0.01, 'cedi', 'pesewa' );

OR

const words = CurrencyToWords('105');
const customCurrency = CurrencyToWords('105', 'cedi', 'pesewa' );

TODO

  • Supporting other languages

Meisam Malekzadeh

0.4.0

3 years ago

0.3.0

4 years ago

0.2.9

4 years ago

0.2.8

4 years ago

0.2.7

4 years ago

0.2.5

4 years ago

0.2.4

4 years ago

0.2.3

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.9

4 years ago

0.1.8

4 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.2

4 years ago

0.1.3

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago