# cryptoaddress-validator

> Validates cryptocurrency addresses.

Latest version **0.0.1** (published 2014-02-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install cryptoaddress-validator
pnpm add cryptoaddress-validator
yarn add cryptoaddress-validator
bun add cryptoaddress-validator
```

## 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.1 |
| Published | 2014-02-27 |
| First published | 2014-02-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | George Demiris |
| Maintainers | geophoenix |
| Keywords | encoding, decoding, crypto, dogecoin, bitcoin, crypto currency address |

## Links

- npm: https://www.npmjs.com/package/cryptoaddress-validator
- npm.io page: https://npm.io/package/cryptoaddress-validator

## Alternatives

- [flatbuffers](https://npm.io/package/flatbuffers.md) — 6.0M weekly downloads
- [jwt-simple](https://npm.io/package/jwt-simple.md) — 259.5K weekly downloads
- [@exodus/patch-broken-hermes-typed-arrays](https://npm.io/package/@exodus/patch-broken-hermes-typed-arrays.md) — 28.5K weekly downloads
- [@native-to-anchor/buffer-layout](https://npm.io/package/@native-to-anchor/buffer-layout.md) — 12.2K weekly downloads
- [binary-parser-encoder](https://npm.io/package/binary-parser-encoder.md) — 5.3K weekly downloads

## Recent versions

- 0.0.1 (latest) — 2014-02-27
- 0.0.2 — 2014-02-27

## README

##CryptoCurrency address validator.

####Description

After researching a lot online about validating crypto-currencies addresses without making API calls in daemons running in background, i found usefull scripts that did this action in client-side and attempted to port them to NodeJS javascript.

####Sources

*Didn't find any licences that would exclude publishing of the code, if the anyone feels that this package violates a licence, please feel free to contact me.*

 - The original source was from this thread <a href="https://bitcointalk.org/index.php?topic=9838.0">at bitcoindtalk.</a>
 
- the second source which the same code appears was found here. <a href="
http://stackoverflow.com/questions/21559851/bitcoin-address-form-validation-javascript-and-php">at stackoverflow.com</a>

- my question which motivated me is <a href="
http://stackoverflow.com/questions/22014600/dogecoin-address-validation-on-nodejs">here</a>.

####Dependencies

None , `BigInt.js` is the only depedency which is already inside the package, and its the minified version its used which makes only 17KB instead of 49KB.

####Installation

`npm install cryptoaddress-validator`

####Usage

```javascript
/*
* Requiring the module, returns only one function which takes the address
* as a parameter, the result when calling the function is a boolean meaning 
* true for valid addresses and false for invalid.
*/
var CryptoAddressCheck=require("cryptoaddress-validator");
if(CryptoAddressCheck("DBKh7QAP9gkXncVK32jtfae4QXChPwsyKH")){ // validating a dogecoin address
	console.log("Valid address");
}else{
	console.log("Invalid address");
}

// logs "Valid address"
```

####Licence 

###MIT
Big Integer Library v. 5.5 is written by <a href="www.leemon.com">Leemon Baird</a>

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