{"_id":"@403name/ether-js","_rev":"4-0d7d88b15091d5a3c17b5e3790480a49","name":"@403name/ether-js","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"@403name/ether-js","version":"1.0.0","keywords":["ethereum","ether","web3","crypto","blockchain","ethers","eth","wallet","utils"],"license":"MIT","_id":"@403name/ether-js@1.0.0","maintainers":[{"name":"403name","email":"403name@proton.me"}],"homepage":"https://github.com/ether-utils/ether-js#readme","bugs":{"url":"https://github.com/ether-utils/ether-js/issues"},"dist":{"shasum":"58408b62a91ab714dd961d79e294df0853f2acfd","tarball":"https://registry.npmjs.org/@403name/ether-js/-/ether-js-1.0.0.tgz","fileCount":4,"integrity":"sha512-vQG9gKmNW35eO4LdINkIx+CSIE/sSpMe9LoTbmX/x2XbDEwATV8B4eyD/y150H0QUc3S052Jq1ByGr1oX6XwJg==","signatures":[{"sig":"MEYCIQCKJ9VXeqF37X17FqLjBONLcNuQkXbviaRkQDyWw098LwIhAMvw/crc8ntkiNu7BRoUn0E27msBRvYZNUU+SA6Lp8H2","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":7511},"main":"index.js","types":"index.d.ts","engines":{"node":">=12.0.0"},"gitHead":"ca7f99d52a76f509d9fb1b45ac9e51f1179796c5","scripts":{"test":"node test.js"},"_npmUser":{"name":"403name","email":"403name@proton.me"},"repository":{"url":"git+https://github.com/ether-utils/ether-js.git","type":"git"},"_npmVersion":"10.8.2","description":"Lightweight Ethereum utility library — format ether, parse units, address validation for Node.js and browser","directories":{},"_nodeVersion":"20.19.6","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/ether-js_1.0.0_1780865688969_0.49718153642796636","host":"s3://npm-registry-packages-npm-production"},"deprecated":"older versions contain dev artifacts — use 1.0.2+"},"1.0.1":{"name":"@403name/ether-js","version":"1.0.1","keywords":["ethereum","ether","web3","crypto","blockchain","ethers","eth","wallet","utils"],"license":"MIT","_id":"@403name/ether-js@1.0.1","maintainers":[{"name":"403name","email":"403name@proton.me"}],"homepage":"https://github.com/ether-utils/ether-js#readme","bugs":{"url":"https://github.com/ether-utils/ether-js/issues"},"dist":{"shasum":"335802d372117cd58855351dacbb13641c0e2fda","tarball":"https://registry.npmjs.org/@403name/ether-js/-/ether-js-1.0.1.tgz","fileCount":4,"integrity":"sha512-i6hyQS+8GnwaNIUjfFWlI4ztOM7m3wv+d3ial+hhI4lc1aFTC5Q7BY1NPfW3rM8l0sedMR5cOrM/vdHR4v4gFw==","signatures":[{"sig":"MEUCIQCcp4EUgX4EIMHIDlf44CeXno0ppe+XZOx0FdZhu8zm4AIgYoB0yKCtduw+qNGxmRzklR54mBMN/xoDEjWBWAqVPtI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":7140},"main":"index.js","types":"index.d.ts","engines":{"node":">=12.0.0"},"gitHead":"ca7f99d52a76f509d9fb1b45ac9e51f1179796c5","scripts":{"test":"node test.js"},"_npmUser":{"name":"403name","email":"403name@proton.me"},"repository":{"url":"git+https://github.com/ether-utils/ether-js.git","type":"git"},"_npmVersion":"10.8.2","description":"Lightweight Ethereum utility library — format ether, parse units, address validation for Node.js and browser","directories":{},"_nodeVersion":"20.19.6","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/ether-js_1.0.1_1780865811384_0.040295514378264174","host":"s3://npm-registry-packages-npm-production"},"deprecated":"older versions contain dev artifacts — use 1.0.2+"},"1.0.2":{"name":"@403name/ether-js","version":"1.0.2","keywords":["ethereum","ether","web3","crypto","blockchain","ethers","eth","wallet","utils"],"license":"MIT","_id":"@403name/ether-js@1.0.2","maintainers":[{"name":"403name","email":"403name@proton.me"}],"homepage":"https://github.com/ether-utils/ether-js#readme","bugs":{"url":"https://github.com/ether-utils/ether-js/issues"},"dist":{"shasum":"6c2f52c90bb234389f71af9b60532b1c1c2ba4b2","tarball":"https://registry.npmjs.org/@403name/ether-js/-/ether-js-1.0.2.tgz","fileCount":4,"integrity":"sha512-b8nojNh1o3j8vqGzaxqyyjgbarqO/KWIeIfd7vzqopXvu24utHmXuPLBpu1DfD4REIE/H00Vwk2oaypfTs5NGA==","signatures":[{"sig":"MEYCIQD2DsGQbwrN2YIr7ijJZUCQo6i8px/6L3JJkNjI3NvFnwIhAPG4NXW6u58me/dcH1159OSkvlwKWlONBdAedPtyZ/fu","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":11287},"main":"index.js","types":"index.d.ts","engines":{"node":">=14.0.0"},"gitHead":"ca7f99d52a76f509d9fb1b45ac9e51f1179796c5","scripts":{"test":"node test.js"},"_npmUser":{"name":"403name","email":"403name@proton.me"},"repository":{"url":"git+https://github.com/ether-utils/ether-js.git","type":"git"},"_npmVersion":"10.8.2","description":"Lightweight Ethereum utility library — format ether, parse units, validate addresses, EIP-55 checksums, keccak256 hashing","directories":{},"sideEffects":false,"_nodeVersion":"20.19.6","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/ether-js_1.0.2_1780866204334_0.18336752794612066","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2026-06-07T20:54:48.789Z","modified":"2026-06-07T21:06:37.873Z","1.0.0":"2026-06-07T20:54:49.089Z","1.0.1":"2026-06-07T20:56:51.512Z","1.0.2":"2026-06-07T21:03:24.475Z"},"bugs":{"url":"https://github.com/ether-utils/ether-js/issues"},"license":"MIT","homepage":"https://github.com/ether-utils/ether-js#readme","keywords":["ethereum","ether","web3","crypto","blockchain","ethers","eth","wallet","utils"],"repository":{"url":"git+https://github.com/ether-utils/ether-js.git","type":"git"},"description":"Lightweight Ethereum utility library — format ether, parse units, validate addresses, EIP-55 checksums, keccak256 hashing","maintainers":[{"name":"403name","email":"403name@proton.me"}],"readme":"# ether-js\n\nLightweight Ethereum utility library for Node.js and browser.\n\n**Zero dependencies.** Includes a pure-JS keccak256 implementation — no `@noble/hashes`, no `ethers`, nothing extra.\n\n## Features\n\n- **formatEther** — Convert wei to human-readable ETH strings\n- **parseEther** — Parse ETH strings to wei (BigInt)\n- **isAddress** — Validate Ethereum addresses\n- **toChecksumAddress** — Convert to EIP-55 checksummed address\n- **keccak256** — Compute keccak256 hash (pure JS, no deps)\n- **Zero dependencies** — Lightweight, tree-shakeable\n- **TypeScript** — Full type definitions included\n\n## Installation\n\n```bash\nnpm install ether-js\n```\n\n## Usage\n\n```javascript\nconst { formatEther, parseEther, isAddress } = require('ether-js');\n\n// Convert wei to ETH\nconsole.log(formatEther(1000000000000000000n)); // \"1.0\"\n\n// Parse ETH to wei\nconsole.log(parseEther('1.5')); // 1500000000000000000n\n\n// Validate address\nconsole.log(isAddress('0x742d35Cc6634C0532925a3b844Bc9e7595f2bD18')); // true\n```\n\n## API\n\n### `formatEther(wei: bigint | string | number): string`\nConvert wei to ether, with 18 decimal places.\n\n### `parseEther(eth: string | number): bigint`\nConvert ether string to wei as BigInt.\n\n### `isAddress(address: string): boolean`\nReturns true if the string is a valid Ethereum address.\n\n### `toChecksumAddress(address: string): string | null`\nReturns EIP-55 checksummed address or null if invalid.\n\n### `keccak256(data: string | Uint8Array): string`\nCompute keccak256 hash of input data. Accepts hex strings (with or without `0x` prefix), plain strings (UTF-8 encoded), and `Uint8Array`.\n\n## License\n\nMIT\n","readmeFilename":"README.md"}