
Security News
Node.js Drops Bug Bounty Rewards After Funding Dries Up
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.
humanize-eth-errors
Advanced tools
Convert Ethereum RPC and smart contract errors into friendly human-readable messages.
Convert Ethereum RPC and smart contract errors into **friendly,
human-readable messages**
A tiny, modern TypeScript library for dApps, wallets, and Web3
frontends.
npm install humanize-eth-errors
# or
yarn add humanize-eth-errors
# or
pnpm add humanize-eth-errors
import { humanizeError } from 'humanize-eth-errors';
try {
await contract.write.transfer([to, amount]);
} catch (err) {
const h = humanizeError(err);
console.log(h.title); // "Insufficient Allowance"
console.log(h.message); // "Your allowance is too low for this operation."
}
Input RPC error:
Error: execution reverted: ERC20: transfer amount exceeds allowance
Output:
{
"title": "Insufficient Allowance",
"message": "Your allowance is too low for this operation.",
"original": "execution reverted: ERC20: transfer amount exceeds allowance"
}
humanizeError(error: unknown): HumanizedReturns:
interface Humanized {
title: string;
message: string;
original: string;
}
addMappings(custom: Record<string, string>)Extend or override error mappings:
addMappings({
'auction has not started': "This auction hasn't started yet.",
'already minted': 'You already minted this NFT.',
});
And more added continuously.
src/
index.ts
mappings.ts
types.ts
test/
humanize.test.ts
PRs are welcome!
Add new errors to mappings.ts or open an issue with examples.
You can find the full source code, issues, discussions, and documentation here:
👉 https://github.com/felaur/humanize-eth-errors
MIT © 2025
FAQs
Convert Ethereum RPC and smart contract errors into friendly human-readable messages.
The npm package humanize-eth-errors receives a total of 1 weekly downloads. As such, humanize-eth-errors popularity was classified as not popular.
We found that humanize-eth-errors demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.