package
Convert tabs to spaces in a string
npm install convert-to-spacesGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Estimated unpacked size across 1 packages.
2.9 kB
Includes dependencies.
Convert tabs to spaces in a string
$ npm install --save convert-to-spacesimport 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.