# coininfo

> JavaScript component for crypto currency specific information.

Latest version **5.2.1** (published 2022-03-08) · MIT license · 0 weekly downloads

## Install

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

## 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 | 5.2.1 |
| Published | 2022-03-08 |
| First published | 2014-03-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 33.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 121 |
| Maintainers | nadav, midnightlightning, sidazhang, fanatid, jprichardson, junderw, ryanzim, kklash |
| Keywords | cryptography, crypto, coin, bitcoin, bitcoin gold, litecoin, viacoin, groestlcoin, elliptic, curve, dogecoin, blackcoin, namecoin, denarius, dash, monacoin, zcash, vertcoin, qtum |

## Links

- npm: https://www.npmjs.com/package/coininfo
- Repository: https://github.com/cryptocoinjs/coininfo
- Homepage: https://github.com/cryptocoinjs/coininfo#readme
- Issues: https://github.com/cryptocoinjs/coininfo/issues
- npm.io page: https://npm.io/package/coininfo

## Dependencies (1)

- [safe-buffer](https://npm.io/package/safe-buffer.md) ^5.1.1

## Alternatives

- [@gemini-wallet/core](https://npm.io/package/@gemini-wallet/core.md) — 515.6K weekly downloads
- [utility](https://npm.io/package/utility.md) — 416.6K weekly downloads
- [@primno/dpapi](https://npm.io/package/@primno/dpapi.md) — 7.2K weekly downloads
- [pi-readseek](https://npm.io/package/pi-readseek.md) — 3.7K weekly downloads
- [@emilia-protocol/verify](https://npm.io/package/@emilia-protocol/verify.md) — 1.1K weekly downloads

## Recent versions

- 5.2.1 (latest) — 2022-03-08
- 5.2.0 — 2022-03-08
- 5.1.0 — 2019-05-31
- 5.0.0 — 2019-05-29
- 4.5.0 — 2019-04-30
- 4.4.1 — 2019-04-08
- 4.4.0 — 2019-02-15
- 4.3.0 — 2018-08-15
- 4.2.0 — 2018-08-10
- 4.1.0 — 2018-07-31
- 4.0.1 — 2018-06-22
- 4.0.0 — 2018-03-05
- 3.2.0 — 2018-01-16
- 3.1.0 — 2018-01-10
- 3.0.0 — 2018-01-10
- … 23 more at https://npm.io/package/coininfo/versions

## README

coininfo
========

[![build status](https://api.travis-ci.org/cryptocoinjs/coininfo.svg)](http://travis-ci.org/cryptocoinjs/coininfo)

JavaScript component for crypto currency specific information such as version numbers, DNS seeds, etc.
Works in Node.js and the browser.


Installation
------------

    npm i coininfo


Usage
-----

```js
var coininfo = require('coininfo')

console.dir(coininfo('LTC')) //use LTC-TEST for testnet
// =>
/*
{ versions:
   { public: 48,
     private: 176,
     scripthash: 5,
     bip32: { public: 27108450, private: 27106558 } } }
*/
```

Could also:

```js
var litecoin = coininfo.litecoin.main
var litecoinTest = coininfo.litecoin.test
```

Useful to use in conjunction with [coinkey](https://github.com/cryptocoinjs/coinkey) and [coinstring](https://github.com/cryptocoinjs/coinstring).


Want to Use With Bitcore or bitcoinjs-lib?
-----------------------------------------

**bitcoinjs-lib example:**

```js
var coininfo = require('coininfo')
var bitcoin = coininfo.bitcoin.main
var bitcoinBitcoinJSLib = bitcoin.toBitcoinJS()
```

**Bitcore example:**

```js
var coininfo = require('coininfo')
var bitcoin = coininfo.bitcoin.main
var bitcoinBitcoreLib = bitcoin.toBitcore()
```


Pull requests?
--------------

Follow the canonical example:

https://github.com/cryptocoinjs/coininfo/blob/master/lib/coins/btc.js


License
-------

MIT

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