Coder Social home page Coder Social logo

cli-tableau's People

Contributors

charleshimmer avatar crackcomm avatar danielconnor avatar em- avatar estliberitas avatar fgribreau avatar jamestalmage avatar ljharb avatar mal avatar marak avatar peterbraden avatar possibilities avatar raine avatar rauchg avatar sonnym avatar soyuka avatar stevenvachon avatar thomd avatar tootallnate avatar unitech avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

cli-tableau's Issues

Printing Chinese, the border will appear disorderly

like this demo:

var table = new Table({
    head: ['name', 'version']
});
table.push(['卡片', '1.0.0']);
console.log(table.toString());

The border in the vertical direction will be misaligned, like:
┌────┬───────┐
│ name│ version │
├────┼───────┤
│ 卡片 │ 1.0.0 │
└────┴───────┘

Add SECURITY.md

Hello 👋

I run a security community that finds and fixes vulnerabilities in OSS. A researcher (@Ilaygoldman) has found a potential issue, which I would be eager to share with you.

Could you add a SECURITY.md file with an e-mail address for me to send further details to? GitHub recommends a security policy to ensure issues are responsibly disclosed, and it would help direct researchers in the future.

Looking forward to hearing from you 👍

(cc @huntr-helper)

Terminal font is left bold & bright white after printing table

This issue is related to issue with PM2 (Unitech/pm2#4369)

After the table is printed to console, it oddly leaves font bold & bright white:

image

Wonder if cli-tableau dev team has any ideas why this could be happening?

Here is the contents of cli-tableau object before printed to console with .toString() :

(suggest copy/paste into some JSONlint tool to read better)

Array { '0': { '\u001b[1m\u001b[36m0\u001b[39m\u001b[22m': [ 'start_mongo', 'default', 'N/A', '\u001b[7m\u001b[1mfork\u001b[22m\u001b[27m', 16765, '54m', 0, '\u001b[32m\u001b[1monline\u001b[22m\u001b[39m', '0%', '1.2mb ', '\u001b[1mjuliauser\u001b[22m', '\u001b[90mdisabled\u001b[39m' ] }, options: { chars: { top: '─', 'top-mid': '┬', 'top-left': '┌', 'top-right': '┐', bottom: '─', 'bottom-mid': '┴', 'bottom-left': '└', 'bottom-right': '┘', left: '│', 'left-mid': '├', mid: '─', 'mid-mid': '┼', right: '│', 'right-mid': '┤', middle: '│' }, truncate: '…', colWidths: [ 5, 16, 13, 9, 9, 10, 8, 6, 11, 10, 10, 10, 10 ], colAligns: [ 'left' ], style: { 'padding-left': 1, 'padding-right': 1, head: [Array], border: [Array], compact: true }, head: [ 'id', 'name', 'namespace', 'version', 'mode', 'pid', 'uptime', '↺', 'status', 'cpu', 'mem', 'user', 'watching' ] }, length: 1 }

Also here is contents of options.style.head & options.style.border:

options.style.head:
[ 'cyan', 'bold' ]

options.style.border:
[ 'grey' ]

Please let me know if anything comes to mind! Thank you!

right align not working?

using node 14.x/15.x, the right align feature does not appear to work.

It may be because the padEnd function does not have 3 parameters. So for now I just copied and patched in my repo (breaking left alignment), but if you interested in a PR, I'd be happy to provide one, although I'm not sure how I would support middle (whether the extra char would be on the left or right?)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.