JSPM

currbit

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q24525F
  • License MIT

An API to convert any world currency into Bitcoin value.

Package Exports

  • currbit

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (currbit) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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

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

  • C2B : Easily convert any World Currency into Bitcoin

License

MIT © Rishi Giri