# ethereum-checksum-address

> Convert Ethereum address to a checksummed address

Latest version **0.0.8** (published 2022-03-23) · MIT license · 0 weekly downloads

## Install

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

Provides the commands `ethereum-checksum-address`, `ethereum_checksum_address`.

## Health

**Score 23/100 (F)** — status: abandoned.

Positive: has types package; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.8 |
| Published | 2022-03-23 |
| First published | 2019-06-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/ethereum-checksum-address) |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 213.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 22 |
| Author | Miguel Mota |
| Maintainers | miguelmota |
| Keywords | ethereum, checksum, address, check, converter, verify, verification, validation, hashing, normalize, cli |

## Links

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

## Dependencies (2)

- [meow](https://npm.io/package/meow.md) ^10.1.2
- [keccak](https://npm.io/package/keccak.md) ^3.0.2

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 0.0.8 (latest) — 2022-03-23
- 0.0.7 — 2021-09-13
- 0.0.6 — 2020-07-23
- 0.0.5 — 2019-10-13
- 0.0.4 — 2019-10-13
- 0.0.3 — 2019-06-24
- 0.0.2 — 2019-06-24
- 0.0.1 — 2019-06-24

## README

# ethereum-checksum-address

> Convert Ethereum address to a checksummed address

[![License](http://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/miguelmota/ethereum-checksum-address/master/LICENSE)
[![NPM version](https://badge.fury.io/js/ethereum-checksum-address.svg)](http://badge.fury.io/js/ethereum-checksum-address)

## Demo

[https://lab.miguelmota.com/ethereum-checksum-address](https://lab.miguelmota.com/ethereum-checksum-address)

## Install

```bash
npm install ethereum-checksum-address
```

## Getting started

Convert to a checksummed address:

```javascript
const { toChecksumAddress } = require('ethereum-checksum-address')

console.log(toChecksumAddress('0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1')) // '0x90F8bf6A479f320ead074411a4B0e7944Ea8c9C1'
console.log(toChecksumAddress('0x90F8BF6A479F320EAD074411A4B0E7944EA8C9C1')) // '0x90F8bf6A479f320ead074411a4B0e7944Ea8c9C1'
```

Check if address is a checksummed address:

```javascript
const { checkAddressChecksum } = require('ethereum-checksum-address')

console.log(checkAddressChecksum('0x90F8bf6A479f320ead074411a4B0e7944Ea8c9C1')) // true
console.log(checkAddressChecksum('0x90F8BF6A479F320EAD074411A4B0E7944EA8C9C1')) // false
```

## CLI

Install:

```bash
npm install -g ethereum-checksum-address
```

Convert address to checksummed address:

```bash
$ ethereum_checksum_address 0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1

0x90F8bf6A479f320ead074411a4B0e7944Ea8c9C1
```

Check if address is a checksummed address

```bash
$ ethereum_checksum_address 0x90F8bf6A479f320ead074411a4B0e7944Ea8c9C1 --check

true
```

Piping address example:

```bash
$ echo 0x90F8bf6A479f320ead074411a4B0e7944Ea8c9C1 | ethereum_checksum_address --check

true
```

## Test

```bash
npm test
```

## License

[MIT](LICENSE)

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