Socket
Book a DemoInstallSign in
Socket

find-currency-code

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

find-currency-code

Find currency code from given string

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

find-currency-code Build Status codecov

Find currency code from given string

Install

$ yarn add find-currency-code

Usage

const findCurrencyCode = require('find-currency-code')

findCurrencyCode('I have USD300')
// => USD

findCurrencyCode('I do not have money')
// => undefined

API

findCurrencyCode(input)

Returns a string

input

Type: string
Required

  • transform-currency — Transform currency code to symbol
  • has-currency-code — Check if given string has currency code
  • currenci — List of currencies and get random currency

License

MIT © Bu Kinoshita

Keywords

currenci

FAQs

Package last updated on 19 Jun 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts