Files
codeql-action/node_modules/convert-to-spaces
2020-05-13 11:13:27 +01:00
..
2020-05-13 11:13:27 +01:00
2020-05-13 11:13:27 +01:00
2020-05-13 11:13:27 +01:00
2020-05-13 11:13:27 +01:00

convert-to-spaces Build Status

Convert tabs to spaces in a string

Install

$ npm install --save convert-to-spaces

Usage

const convertToSpaces = require('convert-to-spaces');

convertToSpaces('\t\thello!');
//=> '    hello!'

API

convertToSpaces(str, [spaces])

str

Type: string

Source string.

spaces

Type: number
Default: 2

Number of spaces instead of each tab.

License

MIT © Vadim Demedes