currency-converter-lt
Advanced tools
Comparing version
@@ -41,3 +41,3 @@ const cheerio = require("cheerio") | ||
"COP": "Colombian Peso", | ||
"CF": "Comorian Franc", | ||
"KMF": "Comorian Franc", | ||
"CDF": "Congolese Franc", | ||
@@ -131,2 +131,3 @@ "CRC": "Costa Rican Colón", | ||
"SEK": "Swedish Krona", | ||
"CF": "Swiss Franc", | ||
"CHF": "Swiss Franc", | ||
@@ -158,3 +159,3 @@ "TJS": "Tajikistani Somoni", | ||
} | ||
currencyCode = ["AFN", "ALL", "DZD", "AOA", "ARS", "AMD", "AWG", "AUD", "AZN", "BSD", "BHD", "BBD", "BDT", "BYN", "BZD", "BMD", "BTN", "XBT", "BOB", "BAM", "BWP", "BRL", "BND", "BGN", "BIF", "XPF", "KHR", "CAD", "CVE", "KYD", "FCFA", "CLP", "CLF", "CNY", "CNY", "COP", "CF", "CDF", "CRC", "HRK", "CUC", "CZK", "DKK", "DJF", "DOP", "XCD", "EGP", "ETB", "FJD", "GMD", "GBP", "GEL", "GHS", "GTQ", "GNF", "GYD", "HTG", "HNL", "HKD", "HUF", "ISK", "INR", "IDR", "IRR", "IQD", "ILS", "JMD", "JPY", "JOD", "KZT", "KES", "KWD", "KGS", "LAK", "LBP", "LSL", "LRD", "LYD", "MOP", "MKD", "MGA" , "MWK", "MYR", "MVR", "MRO", "MUR", "MXN", "MDL", "MAD", "MZN", "MMK", "NAD", "NPR", "ANG", "NZD", "NIO", "NGN", "NOK", "OMR", "PKR", "PAB", "PGK", "PYG", "PHP", "PLN", "QAR", "RON", "RUB", "RWF", "SVC", "SAR", "RSD", "SCR", "SLL", "SGD", "SBD", "SOS", "ZAR", "KRW", "VES", "LKR", "SDG", "SRD", "SZL", "SEK", "CHF", "TJS", "TZS", "THB", "TOP", "TTD", "TND", "TRY" , "TMT", "UGX", "UAH", "AED", "USD", "UYU", "UZS", "VND", "XOF", "YER", "ZMW", "ETH", "EUR", "LTC", "TWD", "PEN"] | ||
currencyCode = ["AFN", "ALL", "DZD", "AOA", "ARS", "AMD", "AWG", "AUD", "AZN", "BSD", "BHD", "BBD", "BDT", "BYN", "BZD", "BMD", "BTN", "XBT", "BOB", "BAM", "BWP", "BRL", "BND", "BGN", "BIF", "XPF", "KHR", "CAD", "CVE", "KYD", "FCFA", "CLP", "CLF", "CNY", "CNY", "COP", "CF", "CHF", "CDF", "CRC", "HRK", "CUC", "CZK", "DKK", "DJF", "DOP", "XCD", "EGP", "ETB", "FJD", "GMD", "GBP", "GEL", "GHS", "GTQ", "GNF", "GYD", "HTG", "HNL", "HKD", "HUF", "ISK", "INR", "IDR", "IRR", "IQD", "ILS", "JMD", "JPY", "JOD", "KMF", "KZT", "KES", "KWD", "KGS", "LAK", "LBP", "LSL", "LRD", "LYD", "MOP", "MKD", "MGA" , "MWK", "MYR", "MVR", "MRO", "MUR", "MXN", "MDL", "MAD", "MZN", "MMK", "NAD", "NPR", "ANG", "NZD", "NIO", "NGN", "NOK", "OMR", "PKR", "PAB", "PGK", "PYG", "PHP", "PLN", "QAR", "RON", "RUB", "RWF", "SVC", "SAR", "RSD", "SCR", "SLL", "SGD", "SBD", "SOS", "ZAR", "KRW", "VES", "LKR", "SDG", "SRD", "SZL", "SEK", "CHF", "TJS", "TZS", "THB", "TOP", "TTD", "TND", "TRY" , "TMT", "UGX", "UAH", "AED", "USD", "UYU", "UZS", "VND", "XOF", "YER", "ZMW", "ETH", "EUR", "LTC", "TWD", "PEN"] | ||
@@ -161,0 +162,0 @@ constructor(params) { |
{ | ||
"name": "currency-converter-lt", | ||
"version": "2.0.0-beta.0", | ||
"version": "2.0.0", | ||
"description": "A nodejs currency converter library that doesn't require subscribing to any API calls.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -14,2 +14,6 @@ <div align="center"> | ||
### Typescript Support | ||
Check out this [comment](https://github.com/paul-shuvo/nodejs-currency-converter/issues/35#issuecomment-1407626126) | ||
## Getting started | ||
@@ -16,0 +20,0 @@ |
@@ -137,2 +137,17 @@ const chai = require("chai") | ||
it("should not return undefined values for CF", () => { | ||
currencyConverter.from("CF").to("JPY") | ||
return expect(currencyConverter.rates()).to.eventually.not.equal(undefined) | ||
}) | ||
it("should not return undefined values for CHF", () => { | ||
currencyConverter.from("USD").to("CHF") | ||
return expect(currencyConverter.rates()).to.eventually.not.equal(undefined) | ||
}) | ||
it("should not return undefined values for KMF", () => { | ||
currencyConverter.from("KMF").to("USD") | ||
return expect(currencyConverter.rates()).to.eventually.not.equal(undefined) | ||
}) | ||
it("should not return undefined values when isDecimalComma is true", () => { | ||
@@ -139,0 +154,0 @@ currencyConverter.from("USD").to("JPY").setDecimalComma(true) |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
30987
2.74%539
2.47%0
-100%123
3.36%