Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

web3-utils

Package Overview
Dependencies
Maintainers
4
Versions
494
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

web3-utils - npm Package Compare versions

Comparing version 4.0.0-alpha.0 to 4.0.0-alpha.1

dist/chunk_response_parser.d.ts

82

package.json
{
"name": "web3-utils",
"version": "4.0.0-alpha.0",
"description": "Utilities for Web3 4.x.x",
"main": "lib/index.js",
"repository": "https://github.com/ChainSafe/web3.js",
"author": "ChainSafe Systems",
"license": "LGPL-3.0",
"files": [
"lib/**/*"
],
"scripts": {
"build": "yarn clean && yarn compile",
"clean": "rimraf lib && rimraf buildcache",
"compile": "tsc --build",
"lint": "yarn prettier --write . && eslint \"./src/**/*.ts\" --max-warnings=0",
"lint:check": "yarn prettier --check . && eslint \"./src/**/*.ts\" --max-warnings=0",
"test": "jest",
"test:unit": "jest ./test/unit"
},
"devDependencies": {
"@types/jest": "^26.0.22",
"@typescript-eslint/eslint-plugin": "^4.22.0",
"@typescript-eslint/parser": "^4.22.0",
"eslint": "^7.24.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-import": "^2.22.1",
"jest": "^26.6.3",
"prettier": "^2.3.0",
"ts-jest": "^26.5.4",
"typescript": "^4.2.4"
},
"dependencies": {
"ethereumjs-util": "^7.0.10"
}
"name": "web3-utils",
"version": "4.0.0-alpha.1",
"description": "Collection of utility functions used in web3.js.",
"main": "dist/index.js",
"repository": "https://github.com/ChainSafe/web3.js",
"author": "ChainSafe Systems",
"license": "LGPL-3.0",
"files": [
"dist/**/*"
],
"scripts": {
"clean": "rimraf dist",
"prebuild": "rimraf dist",
"build": "tsc --build",
"build:check": "node -e \"require('./dist')\"",
"lint": "eslint --ext .js,.ts .",
"lint:fix": "eslint --fix --ext .js,.ts .",
"format": "prettier --write '**/*'",
"test": "jest --config=./test/unit/jest.config.js",
"test:coverage": "jest --config=./test/unit/jest.config.js --coverage=true --coverage-reporters=text",
"test:ci": "jest --coverage=true --coverage-reporters=json --verbose",
"test:watch": "npm test -- --watch",
"test:unit": "jest --config=./test/unit/jest.config.js",
"test:integration": "jest --config=./test/integration/jest.config.js --runInBand --passWithNoTests"
},
"devDependencies": {
"@humeris/espresso-shot": "^4.0.0",
"@types/jest": "^28.1.6",
"@typescript-eslint/eslint-plugin": "^5.30.7",
"@typescript-eslint/parser": "^5.30.7",
"eslint": "^8.20.0",
"eslint-config-prettier": "^8.5.0",
"eslint-config-web3-base": "0.1.0",
"eslint-plugin-import": "^2.26.0",
"jest": "^28.1.3",
"jest-extended": "^3.0.1",
"js-sha3": "^0.8.0",
"prettier": "^2.7.1",
"ts-jest": "^28.0.7",
"typescript": "^4.7.4"
},
"dependencies": {
"ethereum-cryptography": "^1.1.2",
"web3-errors": "^0.1.0-alpha.0",
"web3-types": "^0.1.0-alpha.0",
"web3-validator": "^0.1.0-alpha.0"
},
"gitHead": "e6e512ac51fdf20529003a984c087c00b2027ecc"
}
<p align="center">
<img src="../../assets/logo/web3js.jpg" width="200" alt="web3.js" />
<img src="assets/logo/web3js.jpg" width="500" alt="web3.js" />
</p>
# web3.js - Utils
# web3-utils
## Installation
![ES Version](https://img.shields.io/badge/ES-2020-yellow)
![Node Version](https://img.shields.io/badge/node-14.x-green)
[![NPM Package][npm-image]][npm-url]
[![Dependency Status][deps-image]][deps-url]
[![Dev Dependency Status][deps-dev-image]][deps-dev-url]
This is a sub-package of [web3.js][repo].
`web3-utils` This contains useful utility functions for Dapp developers.
###### Get it from the NPM Registry
```bash

@@ -13,11 +23,45 @@ yarn add web3-utils

## Usage
```js
const Web3Utils = require('web3-utils');
console.log(Web3Utils);
{
sha3: function(){},
soliditySha3: function(){},
isAddress: function(){},
...
}
```
## Getting Started
- :writing_hand: If you have questions [submit an issue](https://github.com/ChainSafe/web3.js/issues/new) or join us on [Discord](https://discord.gg/yjyvFRP)
![Discord](https://img.shields.io/discord/593655374469660673.svg?label=Discord&logo=discord)
## Prerequisites
- :gear: [NodeJS](https://nodejs.org/) (LTS/Fermium)
- :toolbox: [Yarn](https://yarnpkg.com/)/[Lerna](https://lerna.js.org/)
## Package.json Scripts
- `build`: Runs `yarn clean` and `yarn compile`
- `clean`: Uses `rimraf` to remove `lib/` and `buildcache/`
- `compile`: Uses `tsc` to build package and depedenent packages
- `lint`: Uses `prettier` and `eslint` to lint package
- `lint:check`: Uses prettier and `eslint` to check if package has been linted
- `test`: Uses `jest` to run all tests
- `test:integration`: Uses `jest` to run tests under `/test/integration`
- `test:unit`: Uses `jest` to run tests under `/test/unit`
| 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` |
[docs]: http://web3js.readthedocs.io/en/4.0/
[repo]: https://github.com/ethereum/web3.js
[npm-image]: https://img.shields.io/npm/v/web3-utils.svg
[npm-url]: https://npmjs.org/packages/web3-utils
[deps-image]: https://david-dm.org/ethereum/web3.js/4.x/status.svg?path=packages/web3-utils
[deps-url]: https://david-dm.org/ethereum/web3.js/4.x?path=packages/web3-utils
[deps-dev-image]: https://david-dm.org/ethereum/web3.js/4.x/dev-status.svg?path=packages/web3-utils
[deps-dev-url]: https://david-dm.org/ethereum/web3.js/4.x?type=dev&path=packages/web3-utils
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc