diff options
author | Forrest L Norvell <forrest@npmjs.com> | 2014-08-29 09:16:05 +0400 |
---|---|---|
committer | Forrest L Norvell <forrest@npmjs.com> | 2014-08-29 09:16:05 +0400 |
commit | bf247edf5429c6b3ec4d4cb798fa0eb0a9c19fc1 (patch) | |
tree | dad6102c4ea3a8bec8d629222f7bec92b54f9a4d /node_modules/columnify/Readme.md | |
parent | 4bbe682a6d4eabcd23f892932308c9f228bf4de3 (diff) |
columnify@1.2.1
Diffstat (limited to 'node_modules/columnify/Readme.md')
-rw-r--r-- | node_modules/columnify/Readme.md | 25 |
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 - - |