actions/github/codeql-action-v2/node_modules/convert-to-spaces
2026-01-31 18:56:04 +01:00
..
dist initial commit of actions 2026-01-31 18:56:04 +01:00
license initial commit of actions 2026-01-31 18:56:04 +01:00
package.json initial commit of actions 2026-01-31 18:56:04 +01:00
readme.md initial commit of actions 2026-01-31 18:56:04 +01:00

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.