dedent-js
Removes indentation from multiline strings. Works with both tabs and spaces.
Installation
$ npm install dedent-js
Usage
// Dedent can be also used as a function.to; // Leading/trailing line break is removed.to; // No more than one leading/trailing line break is removed.to; // Only the "base" indentation is removed.to; // The last line is ignored if it doesn't contain anything else than whitespace.to; // Escaped characters are NOT ignored.to;
License
Copyright (c) 2015 Martin Kolárik. Released under the MIT license.