wallet-core/node_modules/redent
2017-05-28 00:40:43 +02:00
..
node_modules add linting (and some initial fixes) 2017-05-28 00:40:43 +02:00
index.js add node_modules to address #4364 2016-10-10 03:43:44 +02:00
license add node_modules to address #4364 2016-10-10 03:43:44 +02:00
package.json node_modules 2016-11-03 01:33:53 +01:00
readme.md add node_modules to address #4364 2016-10-10 03:43:44 +02:00

redent Build Status

Strip redundant indentation and indent the string

Install

$ npm install --save redent

Usage

const redent = require('redent');

redent('\n  foo\n    bar\n', 1);
//=> '\n foo\n   bar\n'

API

redent(input, [count], [indent])

input

Type: string

count

Type: number
Default: 0

How many times you want indent repeated.

indent

Type: string
Default: ' '

The string to use for the indent.

License

MIT © Sindre Sorhus