All Projects → driaug → current-currency

driaug / current-currency

Licence: other
Making it easy to work with currencies and cryptos!

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to current-currency

php-currency-api
Standardized wrapper for popular currency rate APIs. Currently supports FixerIO, CurrencyLayer, Open Exchange Rates and Exchange Rates API.
Stars: ✭ 17 (+21.43%)
Mutual labels:  currency
currency-edittext
A Custom EditText implementation that allows formatting of currency-based numeric inputs.
Stars: ✭ 86 (+514.29%)
Mutual labels:  currency
money
Crystal shard for dealing with money and currency conversion
Stars: ✭ 26 (+85.71%)
Mutual labels:  currency
react-native-money
A fully native TextInput component that allows currency input with a right to left text alignment
Stars: ✭ 45 (+221.43%)
Mutual labels:  currency
postcss-currency
PostCSS plugin replaces name of currency with symbols
Stars: ✭ 18 (+28.57%)
Mutual labels:  currency
historical-bank-ruby
A Ruby Bank that serves historical exchange rates
Stars: ✭ 14 (+0%)
Mutual labels:  currency
money-parser
Price and currency parsing utility
Stars: ✭ 26 (+85.71%)
Mutual labels:  currency
zen archived
TLS integration and more!
Stars: ✭ 133 (+850%)
Mutual labels:  currency
tellerbot
Telegram Bot for over-the-counter trading
Stars: ✭ 17 (+21.43%)
Mutual labels:  currency
python-forex-quotes
Library to fetch and parse realtime Forex quotes and convert currencies
Stars: ✭ 25 (+78.57%)
Mutual labels:  currency
FXCM currency
Using Machine Learning for live currency trading
Stars: ✭ 29 (+107.14%)
Mutual labels:  currency
akshare
AKShare is an elegant and simple financial data interface library for Python, built for human beings! 开源财经数据接口库
Stars: ✭ 5,155 (+36721.43%)
Mutual labels:  currency
formatters
A javascript library for formatting and manipulating.
Stars: ✭ 14 (+0%)
Mutual labels:  currency
LEAmountInputView
Amount Input View (inspired by Square's design)
Stars: ✭ 44 (+214.29%)
Mutual labels:  currency
v-currency
A plugin for formatting currency for different countries in Vue
Stars: ✭ 24 (+71.43%)
Mutual labels:  currency
currencyconverter
A Python currency converter using the European Central Bank data.
Stars: ✭ 158 (+1028.57%)
Mutual labels:  currency
SwiftUI-Currency-Converter
Currency Converter project coded by SwiftUI and Swift5
Stars: ✭ 56 (+300%)
Mutual labels:  currency
Narvalo.NET
Applied functional patterns for C#. Money and Currency types. MVP framework. (Obsolete)
Stars: ✭ 16 (+14.29%)
Mutual labels:  currency
Currency-converter
Currency converter is based python program that can be used to convert different currencies
Stars: ✭ 18 (+28.57%)
Mutual labels:  currency
react-numeric
A react component for formatted number form fields
Stars: ✭ 30 (+114.29%)
Mutual labels:  currency

current-currency 💵💶💷

Making it easy to work with currencies and cryptos!

Summary

Getting Started

Install current-currency with your favourite package manager.

  • npm install current-currency
  • yarn add current-currency

Available functions

convert

Convert is used to get the current rates of a currency.

Example

import { convert } from "current-currency";

convert("EUR", 10.2, "USD").then(res => console.log(res));
// {currency: "USD", amount: 12.35}

In the background we make use of https://exchangeratesapi.io/ to always have the current rates.

addSymbol

AddSymbol is used to add the right currency symbol in the right position using the ISO currency code.

Example

import { addSymbol } from "current-currency";

const symbolized = addSymbol("RUB", 10.2);
console.log(symbolized);
// ₽10.2

Example with force position

import { addSymbol } from "current-currency";

const symbolized = addSymbol("USD", 10.2, "post");
console.log(symbolized);
// 10.2$

extract

Extract is used to retrieve information about a currency using the ISO currency code.

Example

import { extract } from "current-currency";

const extraction = extract("10.2RUB");
console.log(extraction);
// { type: "currency", name: "Russian ruble", symbol: "₽", decimal: ",", position: "pre" }

Supported currencies

Code Name
EUR Euro
USD United States Dollar
CAD Canadian Dollar
HKD Hong Kong Dollar
ISK Icelandic Króna
PHP Philippine Peso
DDK Danish Krone
HUF Hungarian Forint
CZK Czech Koruna
AUD Australian Dollar
RON Romanian Leu
SEK Swedish Krona
IDR Indonesian Rupiah
INR Indian Rupee
BRL Brazilian Real
RUB Russian Ruble
HRK Croatian Kuna
JPY Japanse Yen
TBH Thai Baht
CHF Swiss Franc
SGD Singapore Dollar
PLN Polish złoty
BGN Bulgarian Lev
TRY Turkish Lira
CNY Chinese Renminbi
NOK Norwegian Krone
NZD New Zealand Dollar
ZAR South African Rand
MXN Mexican Peso
ILS Israeli Shekel
GBP Pound Sterling
KRW South Korean Won
MYR Malaysian Ringgit

Supported cryptocurrencies

Code Name
BTC Bitcoin
ETH Ethereum
LTC Litecoin
XRP Ripple
DOGE Dogecoin
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].