Comparing version 0.0.4 to 0.0.5
@@ -6,2 +6,4 @@ #!/usr/bin/env node | ||
var options = { | ||
skinny: true, | ||
plusIntersections: true, | ||
columns: [ | ||
@@ -8,0 +10,0 @@ {field: "ab", name: "First"}, |
@@ -62,3 +62,9 @@ var asciitable = module.exports = function asciitable(options, data) { | ||
if (options.skinny) { | ||
output = output.map(function(e) { | ||
return e.replace(/^[ -]/, "").replace(/[ -]$/, ""); | ||
}); | ||
} | ||
return output.join("\n"); | ||
}; |
{ | ||
"name": "asciitable", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "Render tables in text for tabular terminal fun times!", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -68,2 +68,4 @@ asciitable | ||
Default is false. Or undefined. Whatever, default is "not enabled". | ||
* _skinny_ - trims the "hanging" characters used in the layout. Saves you two | ||
horizontal characters! | ||
@@ -70,0 +72,0 @@ Example |
7512
77
127