Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
web3-utils
Advanced tools
Changelog
[4.2.2]
isMetaMaskProvider
function to check if provider is metamask (#6534)MetaMaskProvider
added and is part of SupportedProviders
(#6534)gasPrice
was added to Transaction1559UnsignedAPI
type. (#6539)transactionTimeoutHint
(#6559)data
for transactions in contract for metamask provider instead of input
(#6534)Readme
This is a sub-package of web3.js.
web3-utils
This contains useful utility functions for Dapp developers.
You can install the package either using NPM or using Yarn
npm install web3-utils
yarn add web3-utils
const Web3Utils = require('web3-utils');
console.log(Web3Utils);
{
sha3: function(){},
soliditySha3: function(){},
isAddress: function(){},
...
}
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 |
FAQs
Collection of utility functions used in web3.js.
The npm package web3-utils receives a total of 843,978 weekly downloads. As such, web3-utils popularity was classified as popular.
We found that web3-utils demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.