UNPKG

@airgap/beacon-dapp

Version:

Use this package on your dApp to instanciate a DAppClient object and communicate to wallets.

7 lines • 198 B
export const shortenString = (text) => { if (text.length >= 12) { return `${text.substr(0, 5)}...${text.substr(-5)}`; } return text; }; //# sourceMappingURL=shorten-string.js.map