UNPKG

@metamask/snaps-utils

Version:
11 lines 377 B
/** * Indent a message by adding a number of spaces to the beginning of each line. * * @param message - The message to indent. * @param spaces - The number of spaces to indent by. Defaults to 2. * @returns The indented message. */ export function indent(message, spaces = 2) { return message.replace(/^/gmu, ' '.repeat(spaces)); } //# sourceMappingURL=strings.mjs.map