Initial commit
[yaffs-website] / node_modules / redent / readme.md
1 # redent [![Build Status](https://travis-ci.org/sindresorhus/redent.svg?branch=master)](https://travis-ci.org/sindresorhus/redent)
2
3 > [Strip redundant indentation](https://github.com/sindresorhus/strip-indent) and [indent the string](https://github.com/sindresorhus/indent-string)
4
5
6 ## Install
7
8 ```
9 $ npm install --save redent
10 ```
11
12
13 ## Usage
14
15 ```js
16 const redent = require('redent');
17
18 redent('\n  foo\n    bar\n', 1);
19 //=> '\n foo\n   bar\n'
20 ```
21
22
23 ## API
24
25 ### redent(input, [count], [indent])
26
27 #### input
28
29 Type: `string`
30
31 #### count
32
33 Type: `number`  
34 Default: `0`
35
36 How many times you want `indent` repeated.
37
38 #### indent
39
40 Type: `string`  
41 Default: `' '`
42
43 The string to use for the indent.
44
45
46 ## License
47
48 MIT © [Sindre Sorhus](http://sindresorhus.com)