Change tab to space without change width of line
$ npm i tab2space
const tab2space = require('tab2space');
tab2space('This\tis\ttab', 4);
//=> 'This is tab'
tab2space('This\tis\ttab', 5);
//=> 'This is tab'
Type: object
Type: integer
Default: 4
Length indent for tab
Type: string
Default: 4
Replace for tab