bea5e4b220
The [release notes](https://github.com/avajs/ava/releases/tag/v4.3.3) mention compatibility with Node 18.8. |
||
---|---|---|
.. | ||
dist | ||
license | ||
package.json | ||
readme.md |
readme.md
convert-to-spaces
Convert tabs to spaces in a string
Install
$ npm install --save convert-to-spaces
Usage
import convertToSpaces from 'convert-to-spaces';
convertToSpaces('\t\thello!');
//=> ' hello!'
API
convertToSpaces(input, [spaces])
input
Type: string
String to convert.
spaces
Type: number
Default: 2
Number of spaces instead of each tab.
Related
- convert-to-tabs - Convert spaces to tabs.