1.0.0 • Published 6 years ago
currbit v1.0.0
Install
$ npm install --save currbit
Usage
Random Currencies
const currbit = require('currbit');
currbit().then(res => {
console.log(res);
// 1 Pound sterling = 0.00018 Bitcoin
});
currbit().then(res => {
console.log(res);
// 1 Nicaraguan Cordoba = 0.0000041 Bitcoin
});
Specific Currency Code
currbit('usd').then(res => {
console.log(res);
// 1 United States Dollar = 0.00013 Bitcoin
});
Specific currency with value
currbit('100000 Iranian rial').then(res => {
console.log(res);
// 1,00,000 Iranian Rial = 0.00033 Bitcoin
})
API
currbit()
Returns bitcoin value of random currencies!
currbit(curr)
Returns bitcoin value of specific currecy!
curr
Type :
string
Related
C2B
:
Easily convert any World Currency into Bitcoin
License
MIT © Rishi Giri
1.0.0
6 years ago