wallet-core/node_modules/convert-to-spaces
2017-05-28 00:40:43 +02:00
..
index.js add linting (and some initial fixes) 2017-05-28 00:40:43 +02:00
license add linting (and some initial fixes) 2017-05-28 00:40:43 +02:00
package.json add linting (and some initial fixes) 2017-05-28 00:40:43 +02:00
readme.md add linting (and some initial fixes) 2017-05-28 00:40:43 +02: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