# btc-address

> Manage Bitcoin addresses

Latest version **0.4.0** (published 2014-02-13) · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.4.0 |
| Published | 2014-02-13 |
| First published | 2013-11-21 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 12 |
| Maintainers | jp, vbuterin, midnightlightning, sidazhang |
| Keywords | cryptography, crypto, bitcoin, litecoin, currency, cryptocurrency |

## Links

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

## Dependencies (2)

- [bs58](https://npm.io/package/bs58.md) 0.2.x
- [crypto-hashing](https://npm.io/package/crypto-hashing.md) ~0.1.0

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

- 0.4.0 (latest) — 2014-02-13
- 0.3.0 — 2014-02-13
- 0.2.0 — 2013-12-08
- 0.1.0 — 2013-11-21

## README

Bitcoin Address
===============

JavaScript component to handle Bitcoin addresses.

See this article for more details: [bitcoin address](http://procbits.com/2013/08/27/generating-a-bitcoin-address-with-javascript).



Install
-------

### Node.js/Browserify

    npm install --save btc-address



Usage
-----

```js
var Address = require('btc-address')
var binConv = require('binstring')


var hash160 = "3c176e659bea0f29a3e9bf7880c112b1b31b4dc8";
var address = new Address(binConv(hash160, { in : 'hex', out: 'bytes'})); 
console.log(address.toString()) //16UjcYNBG9GTK4uq2f7yYEbuifqCzoLMGS
```


Credits
-------

Most of the code from Stefan Thomas in https://github.com/bitcoinjs/bitcoinjs-lib with modifications from Roman Shtylman


License
-------

(MIT License)

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