npm.io
4.0.0 • Published 10 years ago

retabber

Licence
MIT
Version
4.0.0
Deps
0
Vulns
0
Weekly
0
Stars
2

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

Keywords