1.5.3 • Published 6 years ago

coinslot v1.5.3

Weekly downloads
79
License
-
Repository
github
Last release
6 years ago

Coinslot

Wallet address validator.

Cryptocurrencies we support:

  • bitcoin
  • litecoin
  • dogecoin
  • dash
  • bitcoin cash
  • bitcoin gold
  • ethereum
  • omise go
  • augur
  • eos
  • fuel
  • status
  • singularDTV
  • genesis coin
  • walton chain
  • ethereum classic
  • monero
  • ripple
  • zcash
  • tether
  • unobtamium
  • iota
  • stellar
  • neo
  • ubiq

Usage

import {validate, SUPPORTED_CURRENCIES} from 'coinslot'

const BTC = SUPPORTED_CURRENCIES.bitcoin;

validate('12QeMLzSrB8XH8FvEzPMVoRxVAzTr5XM2y', BTC)         // true
validate('', BTC)                                           // false
validate('0x627306090abaB3A6e1400e9345bC60c78a8BEf57', BTC) // false, this is Ethereum address, not bitcoin
validate('', 'NOT_SUPPORTED_CURRENCY')                        // throw Error 

Run tests

npm test

1.5.3

6 years ago

1.5.2

6 years ago

1.5.1

6 years ago

1.5.0

6 years ago

1.4.0

6 years ago

1.3.0

6 years ago

1.2.0

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.2

7 years ago

1.0.0

7 years ago