https://github.com/codedotjs/currbit
:earth_asia: An API to convert any world currency into Bitcoin value.
https://github.com/codedotjs/currbit
api bitcoin change convert currency rate value
Last synced: 7 months ago
JSON representation
:earth_asia: An API to convert any world currency into Bitcoin value.
- Host: GitHub
- URL: https://github.com/codedotjs/currbit
- Owner: CodeDotJS
- License: mit
- Created: 2018-06-03T00:04:39.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-06-06T22:32:14.000Z (over 7 years ago)
- Last Synced: 2025-03-20T00:41:16.410Z (8 months ago)
- Topics: api, bitcoin, change, convert, currency, rate, value
- Language: JavaScript
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
C U R R B I T
An API to convert any world currency to Bitcoin value!
## Install
```
$ npm install --save currbit
```
## Usage
__`Random Currencies`__
```js
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`__
```js
currbit('usd').then(res => {
console.log(res);
// 1 United States Dollar = 0.00013 Bitcoin
});
```
__`Specific currency with value`__
```js
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`](https://github.com/CodeDotJS/c2b)__ `:` `Easily convert any World Currency into Bitcoin`
## License
MIT © [Rishi Giri](http://rishigiri.ml)