wallet-core/node_modules/convert-to-spaces/readme.md
2017-05-28 00:40:43 +02:00

733 B

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