@brickblock/crypto-address-checker

    1.0.12 • Public • Published

    Crypto Address Checker

    This package offers helpers to check whether a string is a valid ETH, BTC or LTC address.

    How to use this package?

    1. Install Package

      yarn add @brickblock/crypto-address-checker
    2. Use Package

      import { isEthereumAddress } from '@brickblock/crypto-address-checker'
       
      // (ethereumAddress: string) => boolean
      function ethereumAddressValidation(ethereumAddress) {
        return (
            typeof ethereumAddress === 'string' &&
            !!ethereumAddress.length &&
            isEthereumAddress(ethereumAddress)
        )
      }

    We're using the fantastic crypto-js underneath.

    Keywords

    none

    Install

    npm i @brickblock/crypto-address-checker

    DownloadsWeekly Downloads

    22

    Version

    1.0.12

    License

    ISC

    Unpacked Size

    759 kB

    Total Files

    59

    Last publish

    Collaborators

    • avatar
    • avatar