Replaces all tab characters with in a smart way, spaces similiar to what your regular IDE does.
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
.travis.yml
MIT-LICENSE
README.md
mocha.opts
package.json
retabber.js
test.js

README.md

retabber

GratiPay Build Status Coverage Downloads Version

Replaces all tab characters with spaces in a smart way so that columns visually align, similiar to what your regular IDE does.

Installation

npm install retabber

Usage Example

var retabber = require('retabber');
retabber.smart('1\t2\nheh\t2', 4);
1   2
heh 2

retabber.regular('1\t2\nheh\t2', 4);
1    2
heh    2

Testing

npm test

License

MIT