node package manager
Stop wasting time. Easily manage code sharing in your team. Create a free org »


bitcoin-address Build Status

Functions for working with bitcoin addresses


npm install bitcoin-address


validate (address [, type])

returns true if the address (string) is a valid bitcoin address optionally, you can specify 'prod' or 'testnet' for the type to limit validation that that subset of addresses

get_address_type (address)

returns address type if valid base58 address, otherwise null