Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

currbit

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

currbit

An API to convert any world currency into Bitcoin value.

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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

Keywords

FAQs

Package last updated on 06 Jun 2018

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc