# crypto-price

> A Node.js Module that allows you to convert Crypto Currency price to Local Currency

Latest version **0.0.6** (published 2018-04-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install crypto-price
pnpm add crypto-price
yarn add crypto-price
bun add crypto-price
```

## 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.0.6 |
| Published | 2018-04-20 |
| First published | 2017-06-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 10 |
| Author | Daksh Miglani |
| Maintainers | dakshmiglani |
| Keywords | Crypto, Currency, Local, Currency, Crypto-Price, Crypto, to, Local, Currency, Converter |

## Links

- npm: https://www.npmjs.com/package/crypto-price
- Repository: https://github.com/DakshMiglani/crypto-price
- Homepage: https://github.com/DakshMiglani/crypto-price#readme
- Issues: https://github.com/DakshMiglani/crypto-price/issues
- npm.io page: https://npm.io/package/crypto-price

## Dependencies (1)

- [node-fetch](https://npm.io/package/node-fetch.md) ^2.1.2

## Alternatives

- [update-check](https://npm.io/package/update-check.md) — 4.0M weekly downloads
- [react-native-onesignal](https://npm.io/package/react-native-onesignal.md) — 134.5K weekly downloads
- [react-redux-toastr](https://npm.io/package/react-redux-toastr.md) — 33.7K weekly downloads
- [@nocobase/plugin-notification-manager](https://npm.io/package/@nocobase/plugin-notification-manager.md) — 2.0K weekly downloads
- [react-simple-toasts](https://npm.io/package/react-simple-toasts.md) — 1.9K weekly downloads

## Recent versions

- 0.0.6 (latest) — 2018-04-20
- 0.0.5 — 2018-04-20
- 0.0.4 — 2017-07-06
- 0.0.3 — 2017-07-06
- 0.0.2 — 2017-06-16
- 0.0.1 — 2017-06-16

## README

# Crypto-Price

Crypto Price is a Node.js Module that provides an Easy API which allows users to easily get crypto currency price in their Local / Base Currency and returns a Promise that gives you the price.

## Supported Crypto Currencies

- Ethereum (ETH)
- Bitcoin (BTC)
- Litecoin (LTC)
- Monero (XMR)
- Ripple (XRP)
- ZCash (ZEC)
- Many More ([Here's a list of them.](https://www.cryptonator.com/api/currencies)) 

## API (with Example)

### getCryptoPrice

The getCryptoPrice allows you to get the price of crypto currency from your base currency.

```javascript

let price = require('crypto-price')
price.getCryptoPrice(base, crypto).then(obj => { // Base for ex - USD, Crypto for ex - ETH 
	console.log(obj.price)
}).catch(err => {
	console.log(err)
})

```

### getBasePrice

The getBasePrice allows you to get the price of base currency from your crypto currency.

```javascript

let price = require('crypto-price')
price.getBasePrice(base, crypto).then(obj => { // Base for ex - USD, Crypto for ex - ETH 
	console.log(obj.price)
}).catch(err => {
	console.log(err)
})

```

## License
Copyright [Daksh Miglani](https://dak.sh), Licensed Under MIT 2017.

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