0.0.1-alpha • Published 5 years ago
tab2space v0.0.1-alpha
tab2space
Change tab to space without change width of line
Install
$ npm i tab2space
Usage
const tab2space = require('tab2space');
tab2space('This\tis\ttab', 4);
//=> 'This is tab'
tab2space('This\tis\ttab', 5);
//=> 'This is tab'
API
tab2space(str: string, length: number)
str
length
is a Integer >= 1
0.0.1-alpha
5 years ago
0.0.1
5 years ago