$ gnpm install convert-to-spaces
Convert tabs to spaces in a string
$ npm install --save convert-to-spaces
import convertToSpaces from 'convert-to-spaces';
convertToSpaces('\t\thello!');
//=> ' hello!'
Type: string
String to convert.
Type: number
Default: 2
Number of spaces instead of each tab.
Copyright 2013 - present © cnpmjs.org | Home |