Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bukinoshita/find-currency-code
Find currency code from given string
https://github.com/bukinoshita/find-currency-code
code currencies currency find javascript money nodejs
Last synced: 9 days ago
JSON representation
Find currency code from given string
- Host: GitHub
- URL: https://github.com/bukinoshita/find-currency-code
- Owner: bukinoshita
- License: mit
- Created: 2017-07-04T22:28:50.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-03T23:22:54.000Z (almost 2 years ago)
- Last Synced: 2024-10-10T16:08:00.323Z (26 days ago)
- Topics: code, currencies, currency, find, javascript, money, nodejs
- Language: JavaScript
- Homepage:
- Size: 904 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 19
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# find-currency-code [![Build Status](https://travis-ci.org/bukinoshita/find-currency-code.svg?branch=master)](https://travis-ci.org/bukinoshita/find-currency-code) [![codecov](https://codecov.io/gh/bukinoshita/find-currency-code/branch/master/graph/badge.svg)](https://codecov.io/gh/bukinoshita/find-currency-code)
> Find currency code from given string
## Install
```
$ yarn add find-currency-code
```## Usage
```js
const findCurrencyCode = require('find-currency-code')findCurrencyCode('I have USD300')
// => USDfindCurrencyCode('I do not have money')
// => undefined
```## API
### findCurrencyCode(input)
Returns a `string`
#### input
Type: `string`
Required## Related
- [transform-currency](https://github.com/bukinoshita/transform-currency) — Transform currency code to symbol
- [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)