Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to completely remove border and header #42

Closed
xpepermint opened this issue Oct 5, 2019 · 1 comment
Closed

Unable to completely remove border and header #42

xpepermint opened this issue Oct 5, 2019 · 1 comment

Comments

@xpepermint
Copy link

xpepermint commented Oct 5, 2019

Is there a way to remove border and header and get pure columns?

Example:

xxxyyyzzz
zzzxxxyyy
@xpepermint xpepermint changed the title Unable to completely remove border Unable to completely remove border and header Oct 5, 2019
@tecfu
Copy link
Owner

tecfu commented Oct 17, 2019

Please update to > tty-table@2.8.0 and try the following:

const Table = require('tty-table');

//Example with arrays as rows 
const rows = [
  ['xxxyyyzzz'],
  ['zzzxxxyyy']
];

const t1 = Table(rows,{
  borderStyle: "none",
  compact: true,
  marginTop: 0,
  marginLeft: 0,
  align : "left",
  color : "white"
});

str1 = t1.render();
console.log(str1);

// should result in:

 xxxyyyzzz 
 zzzxxxyyy 

@tecfu tecfu closed this as completed Oct 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants