# bpi

> The Bitcoin price in various currencies using CoinDesk's Bitcoin Price Index API

Latest version **0.1.3** (published 2015-04-17) · ISC license · 0 weekly downloads

## Install

```sh
npm install bpi
pnpm add bpi
yarn add bpi
bun add bpi
```

Provides the command `bpi`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.3 |
| Published | 2015-04-17 |
| First published | 2015-04-17 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.12.0 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Manish Jethani |
| Maintainers | mjethani |
| Keywords | bitcoin |

## Links

- npm: https://www.npmjs.com/package/bpi
- Repository: https://github.com/mjethani/bpi
- Issues: https://github.com/mjethani/bpi/issues
- npm.io page: https://npm.io/package/bpi

## Recent versions

- 0.1.3 (latest) — 2015-04-17
- 0.1.2 — 2015-04-17
- 0.1.1 — 2015-04-17
- 0.1.0 — 2015-04-17

## README

```console
$ npm install -g bpi
bpi@0.1.2 /usr/local/lib/node_modules/bpi
$ bpi --currencies | grep ^NZD
NZD     New Zealand Dollar
$ bpi NZD
296.1073 NZD
$ 
```

```javascript
var bpi = require('bpi');

var code = process.argv[2] || 'EUR';

bpi.price(code, function (error, data) {
  if (error) {
    console.error(String(data || error));
    process.exit(1);
  }

  console.log(data.bpi[code].rate + ' ' + code);
});
```

http://www.coindesk.com/price/

---
_Source: https://npm.io/package/bpi · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
