codeql-action/node_modules/convert-to-spaces
Henry Mercer bea5e4b220 Update ava to 4.3.3
The [release notes](https://github.com/avajs/ava/releases/tag/v4.3.3)
mention compatibility with Node 18.8.
2022-09-02 18:02:07 +01:00
..
dist Update ava to 4.3.3 2022-09-02 18:02:07 +01:00
license replace jest with ava 2020-05-13 11:13:27 +01:00
package.json Update ava to 4.3.3 2022-09-02 18:02:07 +01:00
readme.md Update ava to 4.3.3 2022-09-02 18:02:07 +01:00

readme.md

convert-to-spaces Build Status

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.