Registry
Zzhengxuyu avatar

zhengxuyu/ethers-v5-to-v6

Migrate ethers.js v5 BigNumber to native BigInt (ethers v6)

zhengxuyu0 executions

  • transformation
  • migration
  • ethers
  • bignumber
  • bigint
  • web3
  • defi
Connect a repo
npx codemod @zhengxuyu/ethers-v5-to-v6

ethers-v5-to-v6

Migrate ethers.js v5 BigNumber to native BigInt (ethers v6)

Installation

bash
# Install from registry
codemod run ethers-v5-to-v6

# Or run locally
codemod run -w workflow.yaml

Usage

This codemod transforms tsx code by:

  • Converting var declarations to const/let
  • Removing debug statements
  • Modernizing syntax patterns

Development

bash
# Test the transformation
npm test

# Validate the workflow
codemod validate -w workflow.yaml

# Publish to registry
codemod login
codemod publish

License

MIT

Ready to evolve your codebase?

Build tailored, compiler-aware skills to assess, plan, and automate complex codebase changes.