https://github.com/bukinoshita/transform-currency
Transform currency code to symbol
https://github.com/bukinoshita/transform-currency
currencies currency money transform
Last synced: 6 months ago
JSON representation
Transform currency code to symbol
- Host: GitHub
- URL: https://github.com/bukinoshita/transform-currency
- Owner: bukinoshita
- License: mit
- Created: 2017-07-01T04:01:51.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2021-01-06T21:53:26.000Z (almost 5 years ago)
- Last Synced: 2024-05-02T00:03:02.940Z (over 1 year ago)
- Topics: currencies, currency, money, transform
- Language: JavaScript
- Homepage:
- Size: 75.2 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# transform-currency [](https://travis-ci.org/bukinoshita/transform-currency)
> Transform currency code to symbol
## Install
```
$ npm install --save transform-currency
```## Usage
```js
const transformCurrency = require('transform-currency')transformCurrency(`I'm selling my shoes for USD25`)
// => I'm selling my shoes for $25
```## API
### transformCurrency(input)
Returns a `promise`
#### input
Type: `string`
Required## Related
- [find-currency-code](https://github.com/bukinoshita/find-currency-code) — Find currency code from given string
- [has-currency-code](https://github.com/bukinoshita/has-currency-code) — Check if given string has currency code
- [currenci](https://github.com/bukinoshita/currenci) — List of currencies and get random currency## License
MIT © [Bu Kinoshita](https://bukinoshita.io)