TypeScript package which smartly trims and strips indentation from multi-line strings.
A string that gets so long you need to break it overmultiple lines. Luckily dedent is here to keep itreadable without lots of spaces ending up in the stringitself.
Leading and trailing lines will be trimmed, so you can write something likethis and have it work as you expect:* how convenient it is* that I can use an indented list- and still have it do the right thingThat's all.
Also works fine1. With any kind of2. Placeholders
Wait! I lied. Dedent can also be used as a function.
See history for more details.
1.2.02020-09-28 Updated dependencies and a couple of minor improvments
1.1.02019-07-26 Updated dependencies and fixed links in readme
1.0.02018-06-14 Initial release