Dedent Tag
ES2015 tagged template string for removing indent from strings.
Mirrors on textwrap.dedent
, but ignores interpolated values. Why? You can embed dedent
ed strings without breaking indent calculation.
Installation
npm install dedent-tag --save
Usage
; ; //=> "\ntext\nwith\nmultiple\nlines\n" // End first line with `\` to avoid empty line!; //=> "more\ntext\n"
License
MIT