Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.