web3-utils
TypeScript icon, indicating that this package has built-in type declarations

4.2.2 • Public • Published

web3.js

web3-utils

ES Version Node Version NPM Package Downloads

This is a sub-package of web3.js.

web3-utils This contains useful utility functions for Dapp developers.

Installation

You can install the package either using NPM or using Yarn

Using NPM

npm install web3-utils

Using Yarn

yarn add web3-utils

Usage

const Web3Utils = require('web3-utils');
console.log(Web3Utils);
{
    sha3: function(){},
    soliditySha3: function(){},
    isAddress: function(){},
    ...
}

Getting Started

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

Readme

Keywords

none

Package Sidebar

Install

npm i web3-utils

Weekly Downloads

901,157

Version

4.2.2

License

LGPL-3.0

Unpacked Size

522 kB

Total Files

141

Last publish

Collaborators

  • luu-alex
  • mpetrunic
  • jdevcs
  • gregthegreek