diff options
author | Florian Dold <florian.dold@gmail.com> | 2017-08-14 05:01:11 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2017-08-14 05:02:09 +0200 |
commit | 363723fc84f7b8477592e0105aeb331ec9a017af (patch) | |
tree | 29f92724f34131bac64d6a318dd7e30612e631c7 /node_modules/indent-string/readme.md | |
parent | 5634e77ad96bfe1818f6b6ee70b7379652e5487f (diff) |
node_modules
Diffstat (limited to 'node_modules/indent-string/readme.md')
-rw-r--r-- | node_modules/indent-string/readme.md | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/node_modules/indent-string/readme.md b/node_modules/indent-string/readme.md index bc4745600..d2592d73f 100644 --- a/node_modules/indent-string/readme.md +++ b/node_modules/indent-string/readme.md @@ -6,7 +6,7 @@ ## Install ``` -$ npm install --save indent-string +$ npm install indent-string ``` @@ -19,7 +19,7 @@ indentString('Unicorns\nRainbows', 4); //=> ' Unicorns' //=> ' Rainbows' -indentString('Unicorns\nRainbows', 4, '♥'); +indentString('Unicorns\nRainbows', 4, {indent: '♥'}); //=> '♥♥♥♥Unicorns' //=> '♥♥♥♥Rainbows' ``` @@ -27,7 +27,7 @@ indentString('Unicorns\nRainbows', 4, '♥'); ## API -### indentString(input, [count], [indent]) +### indentString(input, [count], [options]) #### input @@ -42,13 +42,24 @@ Default: `1` How many times you want `indent` repeated. -#### indent +#### options + +Type: `Object`<br> + +##### indent Type: `string`<br> Default: `' '` String to use for the indent. +##### includeEmptyLines + +Type: `boolean`<br> +Default: `false` + +Also indent empty lines. + ## Related |