Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
crypto-converter-lt
Advanced tools
A nodejs crypto currency converter library that doesn't require subscribing to any API calls.
A minimal crypto crypto converter library for NodeJS that works out of the box.
This package can be installed using npm
npm install crypto-converter-lt
or, yarn
yarn add crypto-converter-lt
Import crypto-converter-lt
.
const CC = require('crypto-converter-lt')
Then instantiate with either the empty constructor
let cryptoConverter = new CC()
Or, with a json object
let cryptoConverter = new CC({from:"BTC", to:"ETH", amount:100})
The convert method will return the conversion based on the last conversion rate and can be used as a promise.
cryptoConverter.convert().then((response) => {
console.log(response) //or do something else
})
convert
can also take the amount as a parameter.
cryptoConverter.convert(100).then((response) => {
console.log(response) //or do something else
})
To find the rates use the rates
method.
cryptoConverter.rates().then((response) => {
console.log(response) //or do something else
})
Chaining is also supported.
cryptoConverter.from("LTC").to("ETH").amount(125).convert().then((response) => {
console.log(response) //or do something else
})
If any issues are found, they can be reported here.
This project is licensed under the MIT license.
FAQs
A nodejs crypto currency converter library that doesn't require subscribing to any API calls.
The npm package crypto-converter-lt receives a total of 32 weekly downloads. As such, crypto-converter-lt popularity was classified as not popular.
We found that crypto-converter-lt demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.