1.0.3 • Published 9 months ago

isvalidweb3address v1.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
9 months ago

isvalidweb3address

npm version License: ISC

isvalidweb3address is a lightweight npm package that provides a simple way to validate Ethereum addresses according to Web3 standards.

Installation

To use isvalidweb3address in your project, you can install it using npm:

npm install isvalidweb3address

Usage

Import the isValidWeb3Address function and use it to validate Ethereum addresses:

import isValidWeb3Address from 'isvalidweb3address';

const addressToCheck = '0x742d35Cc6634C0532925a3b844Bc454e4438f44e';

if (isValidWeb3Address(addressToCheck)) {
  console.log('Valid Ethereum address');
} else {
  console.log('Invalid Ethereum address');
}

API

This function takes an Ethereum address as input and returns true if the address is valid according to Web3 standards, and false otherwise.

  • address: The Ethereum address to validate.

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvements, feel free to open issues or pull requests in the GitHub repository.

License

This package is distributed under the ISC License.

1.0.3

9 months ago

1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago