Package Exports
- truncate-eth-address
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (truncate-eth-address) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
truncate-eth-address
A very small and simple utility to truncate ethereum addresses to a more readable format. No dependencies.
Before: 0x7358B726830A2E222f9b139E90483A37142bcBE5
After: 0x7358…cBE5
Usage:
import truncateEthAddress from 'truncate-eth-address'
const walletAddress = `0x7358B726830A2E222f9b139E90483A37142bcBE5`
console.log(`Your address is: ${truncateEthAddress(walletAddress)}`)