# cryptocurrency-address-detector

> Detect which cryptocurrency an address corresponds to.

Latest version **1.1.2** (published 2020-04-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install cryptocurrency-address-detector
pnpm add cryptocurrency-address-detector
yarn add cryptocurrency-address-detector
bun add cryptocurrency-address-detector
```

## 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.2 |
| Published | 2020-04-04 |
| First published | 2018-02-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6 |
| Dependencies | 13 |
| Unpacked size | 5.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 44 |
| Author | Nikolaos Kamarinakis |
| Maintainers | k4m4 |
| Keywords | cryptocurrency, address, detector, regex |

## Links

- npm: https://www.npmjs.com/package/cryptocurrency-address-detector
- Repository: https://github.com/k4m4/cryptocurrency-address-detector
- Homepage: https://github.com/k4m4/cryptocurrency-address-detector#readme
- Issues: https://github.com/k4m4/cryptocurrency-address-detector/issues
- npm.io page: https://npm.io/package/cryptocurrency-address-detector

## Dependencies (13)

- [pify](https://npm.io/package/pify.md) ^3.0.0
- [p-any](https://npm.io/package/p-any.md) ^1.1.0
- [arrify](https://npm.io/package/arrify.md) ^1.0.1
- [neo-regex](https://npm.io/package/neo-regex.md) ^1.0.7
- [p-timeout](https://npm.io/package/p-timeout.md) ^2.0.1
- [dash-regex](https://npm.io/package/dash-regex.md) ^1.0.10
- [monero-regex](https://npm.io/package/monero-regex.md) ^1.0.8
- [ripple-regex](https://npm.io/package/ripple-regex.md) ^1.1.8
- [bitcoin-regex](https://npm.io/package/bitcoin-regex.md) ^2.0.0
- [dogecoin-regex](https://npm.io/package/dogecoin-regex.md) ^1.0.9
- [ethereum-regex](https://npm.io/package/ethereum-regex.md) ^1.1.12
- [litecoin-regex](https://npm.io/package/litecoin-regex.md) ^1.0.8
- [bitcoincash-regex](https://npm.io/package/bitcoincash-regex.md) ^1.1.8

## 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

- 1.1.2 (latest) — 2020-04-04
- 1.1.1 — 2019-07-15
- 1.1.0 — 2019-06-27
- 1.0.8 — 2019-06-05
- 1.0.7 — 2019-06-05
- 1.0.6 — 2019-02-10
- 1.0.5 — 2018-10-12
- 1.0.4 — 2018-03-04
- 1.0.3 — 2018-03-04
- 1.0.2 — 2018-02-28
- 1.0.1 — 2018-02-28
- 1.0.0 — 2018-02-28

## README

# cryptocurrency-address-detector [![Build Status](https://travis-ci.org/k4m4/cryptocurrency-address-detector.svg?branch=master)](https://travis-ci.org/k4m4/cryptocurrency-address-detector)

> Detect which cryptocurrency an address corresponds to.


## Install

```
~ ❯❯❯ npm install cryptocurrency-address-detector
```


## Usage

```js
const addressDetect = require('cryptocurrency-address-detector');

addressDetect('0x281055afc982d96fab65b3a49cac8b878184cb16').then(cryptocurrency => {
	console.log(cryptocurrency);
	//=> 'ETH'
});

addressDetect('1dice8EMZmqKvrGE4Qc9bUFf9PX3xaYDp').then(cryptocurrency => {
	console.log(cryptocurrency);
	//=> 'BTC/BCH'
});

addressDetect('LQL9pVH1LsMfKwt82Y2wGhNGkrjF8vwUst').then(cryptocurrency => {
	console.log(cryptocurrency);
	//=> 'LTC'
});

addressDetect('0xsfdlffsjksldfj[IPv6:2001:db8::2]').then(cryptocurrency => {
	console.log(cryptocurrency);
	//=> 'Cryptocurrency could not be detected'
});
```


## API

### addressDetect(address, [options])

Returns the cryptocurrency that an address corresponds to.

#### address

Type: `string`

Address to check for popular cryptocurrencies.

#### options

##### timeout

Type: `number`

Timeout in milliseconds after which a request is considered failed. Default: `5000`.


## Supported Cryptocurrencies

- [`Bitcoin/BTC`](https://github.com/kevva/bitcoin-regex)
- [`Bitcoin Cash/BCH`](https://github.com/k4m4/bitcoincash-regex)
- [`Ethereum/ETH`](https://github.com/k4m4/ethereum-regex)
- [`Litecoin/LTC`](https://github.com/k4m4/litecoin-regex)
- [`Monero/XMR`](https://github.com/k4m4/monero-regex)
- [`Dash/DASH`](https://github.com/k4m4/dash-regex)
- [`Ripple/XRP`](https://github.com/k4m4/ripple-regex)
- [`NEO/NEO`](https://github.com/k4m4/neo-regex)
- [`Dogecoin/DOGE`](https://github.com/k4m4/dogecoin-regex)


## Related

- [cryptaddress.now](https://github.com/k4m4/cryptaddress.now) - Minimal service to detect what cryptocurrency an address corresponds to. 


## License

MIT © [Nikolaos Kamarinakis](https://nikolaskama.me)

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