unindent
Remove indentations from a block of code
Installation
npm install unindent
Example
var assert = ;var unindent = ;var code = '\ta\t\tb'; assert;
API
;
code
- A string of code.opts
- An optional object literal support these options:tabSize
- Number. If specified, the starting tabs of each line will be convert to spaces.trim
- Boolean. Whether the unindented code should be trimed.