# ethereum-address

> Ethereum address validation

Latest version **0.0.4** (published 2016-08-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install ethereum-address
pnpm add ethereum-address
yarn add ethereum-address
bun add ethereum-address
```

## 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.4 |
| Published | 2016-08-18 |
| First published | 2016-04-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 4.3.0 |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 31 |
| Author | Craig Hammell |
| Maintainers | cilphex |

## Links

- npm: https://www.npmjs.com/package/ethereum-address
- Repository: https://github.com/cilphex/ethereum-address
- Issues: https://github.com/cilphex/ethereum-address/issues
- npm.io page: https://npm.io/package/ethereum-address

## Dependencies (1)

- [crypto-js](https://npm.io/package/crypto-js.md) ^3.1.6

## Recent versions

- 0.0.4 (latest) — 2016-08-18
- 0.0.3 — 2016-04-27
- 0.0.2 — 2016-04-27
- 0.0.1 — 2016-04-27

## README

# ethereum-address

Ethereum address validation

This is a clone of the [web3.js](https://github.com/ethereum/web3.js)
[`isAddress`](https://github.com/ethereum/web3.js/blob/master/lib/utils/utils.js)
utility method, but without the rest of web3.js.

## Install

```
npm install ethereum-address
```

## Usage

```javascript
var ethereum_address = require('ethereum-address');

if (ethereum_address.isAddress(value)) {
  console.log('Valid ethereum address.');
}
else {
  console.log('Invalid Ethereum address.');
}
```

## API

### isAddress (address)

Returns true if the address (string) is an Ethereum address

### isChecksumAddress (address)

Returns true if the address (string) is an Ethereum checksum address

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