unindenter
v4.0.0
Published
Unindents a string by a maxiumum possible number of white space present on each line.
Readme
unindenter
Unindents a block of text by the lowest common indent amount. This is useful when you want to remove extra indentantion on a code block.
Installation
npm install unindenterUsage Example
var unindenter = require('unindenter');
unindenter.unindent('\t\tline 1\n\t\tline 2\n\t\t\tline 3');
line 1
line 2
line 3Testing
npm testLicense
GPL & MIT
