Comparing version 1.0.13 to 1.0.14
{ | ||
"name": "as-table", | ||
"version": "1.0.13", | ||
"version": "1.0.14", | ||
"description": "A simple function to print objects as ASCII tables", | ||
@@ -5,0 +5,0 @@ "main": "as-table.js", |
@@ -71,2 +71,14 @@ # as-table | ||
asTable (data) | ||
``` | ||
``` | ||
Customizing title rendering and header separator: | ||
``` | ||
asTable = require ('as-table').configure ({ title: x => x.bright, delimiter: ' | '.dim.cyan, dash: '-'.bright.cyan }) | ||
console.log ( | ||
asTable ([ { foo: true, string: 'abcde', num: 42 }, | ||
{ foo: false, string: 'qwertyuiop'.bgMagenta.green.bright, num: 43 } ]) | ||
``` | ||
<img width="179" alt="screen shot 2017-07-21 at 23 46 14" src="https://user-images.githubusercontent.com/1707/28481945-dcb0f8d6-6e6e-11e7-896e-dfad40662daf.png"> |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13806
84