Cool-Trim is the an npm package to trim strings to have a consistent indention.
npm install --save cool-trimfunction trim(subject: string, indent: number = 0): string
module.exports = trimimport trim from 'cool-trim'
trim`
Top
Child
Another Top
` === `Top
Child
AnotherTop`; // trueThis project is licensed under the terms of MIT License, see the LICENSE file for more info