@etn-sc/web3-utils
v4.0.7
Published
Collection of utility functions used in web3.js.
Downloads
10
Readme
web3-utils
This is a sub-package of @etn-sc/web3.js.
@etn-sc/web3-utils
This contains useful utility functions for Dapp developers.
Installation
You can install the package using NPM
Using NPM
npm install @etn-sc/web3-utils
Usage
const Web3Utils = require('@etn-sc/web3-utils');
console.log(Web3Utils);
{
sha3: function(){},
soliditySha3: function(){},
isAddress: function(){},
...
}
Getting Started
- :writing_hand: If you have questions submit an issue
Prerequisites
Package.json Scripts
| Script | Description |
| ---------------- | -------------------------------------------------- |
| clean | Uses rimraf
to remove dist/
|
| build | Uses tsc
to build package and dependent packages |
| lint | Uses eslint
to lint package |
| lint:fix | Uses eslint
to check and fix any warnings |
| format | Uses prettier
to format the code |
| test | Uses jest
to run unit tests |
| test:integration | Uses jest
to run tests under /test/integration
|
| test:unit | Uses jest
to run tests under /test/unit
|