UNPKG

@airgap/beacon-dapp

Version:

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

11 lines • 339 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.shortenString = void 0; const shortenString = (text) => { if (text.length >= 12) { return `${text.substr(0, 5)}...${text.substr(-5)}`; } return text; }; exports.shortenString = shortenString; //# sourceMappingURL=shorten-string.js.map