1.0.11 • Published 5 years ago

cash-converter v1.0.11

Weekly downloads
9
License
MIT
Repository
github
Last release
5 years ago

Cash Converter

cash converter is a string conversion module it can find currency values inyour string and replaces with the currency string or currency code or currency symbol and it has many more features to convert your money values.

Installing

npm install cash-converter

Getting Started

  • symbol2string
  • string2symbol
  • transformString
const convert = require('cash-converter');

symbol2string

let value = convert.symbol2string('$100');

it returns "100 USD "

string2symbol

let value = convert.string2symbol('100USD')

it returns "$100"

transformString

convert.transformString(Stringvalue,converstionType);

let value = convert.transformString('you saved 100$ ','string')

it returns "you saved 100 dollars"

let value = convert.transformString('you saved 100$ ','cashCode')

it returns "you saved 100 USD"

let value = convert.transformString('you saved 100 USD ','symbol')

it returns "you saved $100" ;

##conclusion you can try many types of conversions with this module please raise issue in github if you found any bug.

Authors

  • Vamsi Aila

License

This project is licensed under the MIT License

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago