# phorerate

> Provides exchange rates for Phore to Fiat, BTC, and other Altcoins. Also provides Altcoins to Fiat and Altcoins to other Altcoins.

Latest version **1.0.1** (published 2018-06-15) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2018-06-15 |
| First published | 2018-06-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 5.1 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Greg Marlin |
| Maintainers | marleymarl |
| Keywords | phore, exchange, rates, altcoins, btc, fiat |

## Links

- npm: https://www.npmjs.com/package/phorerate
- Repository: https://github.com/phoreproject/phorejs/packages/phorerate
- npm.io page: https://npm.io/package/phorerate

## Dependencies (2)

- [request](https://npm.io/package/request.md) ^2.87.0
- [underscore](https://npm.io/package/underscore.md) ^1.9.1

## Recent versions

- 1.0.1 (latest) — 2018-06-15
- 1.0.0 — 2018-06-14

## README

# Installation

Using npm: 

```
npm install phorerate --save

```

In Node.js:

``` javascript
const phorerate = require('phorerate');

phorerate.getPhoreRate('USD').then(console.log) // returns the current rate of Phore to USD --> replace with another currency code from bitpay.com/rates to get that rate

phorerate.getPhoreRate('EUR').then(function(d){
	console.log('The Phore to Euro rate is: ' + d)
}) //same thing as above, this time with EUR and written more expressively

phorerate.getAltRate('USD', 'lisk').then(console.log) //returns the current rate of Lisk to USD --> replace lisk with any other Altcoin listed on Coinmarket and replace USD with any other currency code from bitpay.com/rates to get those rates

phorerate.getPhore2AltRate('lisk').then(console.log) //returns the rate of Phore to Lisk --> replace list with any Altcoln listed on Coinmarket to get that rate

phorerate.getAlt2AltRate('lisk', 'qtum').then(console.log) // returns the rate of Lisk to Qtum --> replace either of those Altcoins with any Altcoin listed on Coinmarket to get different rate combinations

```

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