
Security Fundamentals
Obfuscation 101: Unmasking the Tricks Behind Malicious Code
Attackers use obfuscation to hide malware in open source packages. Learn how to spot these techniques across npm, PyPI, Maven, and more.
nahmii-ethereum-address
Advanced tools
A small utility for parsing, validating and converting ethereum addresses
This is a small utility library for parsing, validating and converting an ethereum address.
npm install nahmii-ethereum-address
Creating a new address from a string:
const EthereumAddress = require('nahmii-ethereum-address');
let addr = EthereumAddress.from('0x0011223344556677889900112233445566778899');
if (!addr)
console.log('Address is not valid');
The constructor can be invoked with either a 20 byte Buffer or an already existing EthereumAddress instance.
Invalid input will throw a TypeError
.
The static from
class method is able to construct an EthereumAddress from
strings or BSON Binary objects.
It will either return a new instance of an EthereumAddress or null
if
conversion was not possible.
This method will return a hexadecimal string representation of the address.
This method will return a Buffer containing the address.
This method will return a BSON Binary containing the address.
FAQs
A small utility for parsing, validating and converting ethereum addresses
The npm package nahmii-ethereum-address receives a total of 10 weekly downloads. As such, nahmii-ethereum-address popularity was classified as not popular.
We found that nahmii-ethereum-address demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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 Fundamentals
Attackers use obfuscation to hide malware in open source packages. Learn how to spot these techniques across npm, PyPI, Maven, and more.
Security News
Join Socket for exclusive networking events, rooftop gatherings, and one-on-one meetings during BSidesSF and RSA 2025 in San Francisco.
Security News
Biome's v2.0 beta introduces custom plugins, domain-specific linting, and type-aware rules while laying groundwork for HTML support and embedded language features in 2025.