to-space
Convert leading tab to spaces.
Install
$ npm install --save to-space
Usage
const toSpace = require('to-space');
toSpace(`\tHI\n\tTHERE`);
/* convert to 2 spaces:
HI
THERE
*/
// 4 spaces if you like
toSpace(string, {space: 4})
License
MIT © EGOIST