# crypto.in

> An node module receive Crypto coin values

Latest version **1.1.10** (published 2018-05-11) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install crypto.in
pnpm add crypto.in
yarn add crypto.in
bun add crypto.in
```

## 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.1.10 |
| Published | 2018-05-11 |
| First published | 2018-04-14 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 262.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Ahmetcan Aksu |
| Maintainers | fridayai |
| Keywords | Bit |

## Links

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

## Dependencies (3)

- [assert](https://npm.io/package/assert.md) ^1.4.1
- [accounting-js](https://npm.io/package/accounting-js.md) ^1.1.1
- [restify-clients](https://npm.io/package/restify-clients.md) ^2.0.1

## Recent versions

- 1.1.10 (latest) — 2018-05-11
- 1.0.9 — 2018-04-15
- 1.0.8 — 2018-04-15
- 1.0.7 — 2018-04-15
- 1.0.6 — 2018-04-14
- 1.0.5 — 2018-04-14
- 1.0.3 — 2018-04-14

## README

# Crypto.in

[![Build Status](https://travis-ci.org/ahmtcn123/Crypto.in.svg?branch=master)](https://travis-ci.org/ahmtcn123/Crypto.in) [![Crypto.in version](https://img.shields.io/badge/Crypto.in-v1.1.10-ff69b4.svg)](https://www.npmjs.com/package/crypto.in)
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fahmtcn123%2FCrypto.in.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2Fahmtcn123%2FCrypto.in?ref=badge_shield)


**How can I use it ?**

Just write crypto coin name and get the values. !!

**Example**
```js
var cryptoin = require('crypto.in')

cryptoin.in('bitcoin', value => {
	console.log(value)
});
  
/*
  bitname: 'Bitcoin',
  bitsymbol: 'BTC',
  bitrank: '1',
  bitpriceusd: '$8,059.41',
  bitpricebtc: '1.0',
  bithourchange: '%-0.28',
  bit24hchange: '%5.04',
  bitweekchange: '%21.36',
  bitpng: 'https://raw.githubusercontent.com/ahmtcn123/Crypto.in/master/images/Bitcoin.png'  
*/
```

**To get special values**

```js

cryptoin.in('bitcoin', value => {
	console.log(value.bitpriceusd)
});
  
/*
$8,059.41
*/

```

On wrong crypto coin name returns;

**null** for debugging


Debugging example
```js

cryptoin.in('ereum', value => {
console.log(value)
});
  
/*


Error: Wrong cryptocoin name.
    at C:\Users\ahmet\Desktop\Crypto.in\index.js:37:15
    at parseResponse (C:\Users\ahmet\Desktop\node_modules\restify-clients\lib\JsonClient.js:118:9)
    at IncomingMessage.done (C:\Users\ahmet\Desktop\node_modules\restify-clients\lib\StringClient.js:209:13)
    at Object.onceWrapper (events.js:313:30)
    at emitNone (events.js:111:20)
    at IncomingMessage.emit (events.js:208:7)
    at endReadableNT (_stream_readable.js:1055:12)
    at _combinedTickCallback (internal/process/next_tick.js:138:11)
    at process._tickCallback (internal/process/next_tick.js:180:9)

value : 'null' 



*/

**Example**

if(value === null) {
	return console.log('Opps wrong')
}


```


Try out our special AI API ? > [FridayAPI](https://intelligentthings.github.io/FridayAPI/ "See docs")


## License
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fahmtcn123%2FCrypto.in.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Fahmtcn123%2FCrypto.in?ref=badge_large)

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