Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorForrest L Norvell <forrest@npmjs.com>2014-08-29 09:16:05 +0400
committerForrest L Norvell <forrest@npmjs.com>2014-08-29 09:16:05 +0400
commitbf247edf5429c6b3ec4d4cb798fa0eb0a9c19fc1 (patch)
treedad6102c4ea3a8bec8d629222f7bec92b54f9a4d /node_modules/columnify/Readme.md
parent4bbe682a6d4eabcd23f892932308c9f228bf4de3 (diff)
columnify@1.2.1
Diffstat (limited to 'node_modules/columnify/Readme.md')
-rw-r--r--node_modules/columnify/Readme.md25
1 files changed, 22 insertions, 3 deletions
diff --git a/node_modules/columnify/Readme.md b/node_modules/columnify/Readme.md
index a20739b65..43ae36c2c 100644
--- a/node_modules/columnify/Readme.md
+++ b/node_modules/columnify/Readme.md
@@ -191,7 +191,7 @@ module2 0.2.0
## Other Configuration Options
-### Align Right
+### Align Right/Center
```js
var data = {
@@ -211,6 +211,27 @@ commander@2.0.0 1
debug@0.8.1 1
```
+Align Center works in a similar way.
+
+
+### Padding
+
+```js
+var data = {
+ "shortKey": "veryVeryVeryVeryVeryLongVal",
+ "veryVeryVeryVeryVeryLongKey": "shortVal"
+}
+
+columnify(data, { paddingChr: '.'})
+```
+
+#### Output:
+```
+KEY........................ VALUE......................
+shortKey................... veryVeryVeryVeryVeryLongVal
+veryVeryVeryVeryVeryLongKey shortVal...................
+```
+
### Preserve existing newlines
By default, `columnify` sanitises text by replacing any occurance of 1 or more whitespace characters with a single space.
@@ -344,5 +365,3 @@ module-one some description 0.0.1
## License
MIT
-
-