
Security News
Opengrep Adds Apex Support and New Rule Controls in Latest Updates
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.
ethereum-checksum-address
Advanced tools
Convert Ethereum address to a checksummed address
https://lab.miguelmota.com/ethereum-checksum-address
npm install ethereum-checksum-address
Convert to a checksummed address:
const { toChecksumAddress } = require('ethereum-checksum-address')
console.log(toChecksumAddress('0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1')) // '0x90F8bf6A479f320ead074411a4B0e7944Ea8c9C1'
console.log(toChecksumAddress('0x90F8BF6A479F320EAD074411A4B0E7944EA8C9C1')) // '0x90F8bf6A479f320ead074411a4B0e7944Ea8c9C1'
Check if address is a checksummed address:
const { checkAddressChecksum } = require('ethereum-checksum-address')
console.log(checkAddressChecksum('0x90F8bf6A479f320ead074411a4B0e7944Ea8c9C1')) // true
console.log(checkAddressChecksum('0x90F8BF6A479F320EAD074411A4B0E7944EA8C9C1')) // false
Install:
npm install -g ethereum-checksum-address
Convert address to checksummed address:
$ ethereum_checksum_address 0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1
0x90F8bf6A479f320ead074411a4B0e7944Ea8c9C1
Check if address is a checksummed address
$ ethereum_checksum_address 0x90F8bf6A479f320ead074411a4B0e7944Ea8c9C1 --check
true
Piping address example:
$ echo 0x90F8bf6A479f320ead074411a4B0e7944Ea8c9C1 | ethereum_checksum_address --check
true
npm test
FAQs
Convert Ethereum address to a checksummed address
The npm package ethereum-checksum-address receives a total of 5,543 weekly downloads. As such, ethereum-checksum-address popularity was classified as popular.
We found that ethereum-checksum-address demonstrated a not healthy version release cadence and project activity because the last version was released 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
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.