Specify a custom indentation level with ${outdent}
mainYou can explicitly set the indentation level by placing ${outdent} as the first interpolated value in the template string. The indentation level of this placeholder is used as the baseline and is removed from the final output.
Requirement: ${outdent} must be alone on its own line without any preceding or following non-whitespace characters.
const output = outdent`
${outdent}
Yo
12345
Hello world
`;
assert(output === ' Yo\n345\n Hello world');