New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

currency-converter-lt

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

currency-converter-lt - npm Package Compare versions

Comparing version

to
1.2.2

15

index.js

@@ -214,14 +214,15 @@ const cheerio = require("cheerio")

.then((html) => {
// const fs = require('fs');
const fs = require('fs');
// fs.writeFile("a.html", html.body, function(err) {
// if(err) {
// return console.log(err);
// }
// console.log("The file was saved!")})
fs.writeFile("a.html", html.body, function(err) {
if(err) {
return console.log(err);
}
console.log("The file was saved!")})
return cheerio.load(html.body)})
.then(($) => {return $(".iBp4i").text().split(" ")[0]})
.then((rates) => {
console.log(rates)
if(rates.includes(","))
rates = rates.replace(",", "")
rates = rates.replaceAll(",", "")
return parseFloat(rates)

@@ -228,0 +229,0 @@ })

{
"name": "currency-converter-lt",
"version": "1.2.1",
"version": "1.2.2",
"description": "A nodejs currency converter library that doesn't require subscribing to any API calls.",

@@ -5,0 +5,0 @@ "main": "index.js",