Unindents a block of text by the lowest common indent amount. Parses key/value pairs into hash object.
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
.travis.yml
GPL-LICENSE
MIT-LICENSE
README.md
mocha.opts
package.json
test.js
unindenter.js

README.md

unindenter

GratiPay Build Status Coverage Downloads Version

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 unindenter

Usage Example

var unindenter = require('unindenter');
unindenter.unindent('\t\tline 1\n\t\tline 2\n\t\t\tline 3');

line 1
line 2
    line 3

Testing

npm test

License

GPL & MIT