Skip to content

asciitable, with column separation defined by divider rows #670

@velle

Description

@velle

It might be a rare case, but I have to parse a table that looks like this:

Name User group Email         Usertype
---- ---------- ------------- --------
cram cram       cram@fake.com null
jdoe jdoe       jdoe@fake.com null

Notice that the separation between columns is only 1 space, where most similar formatters use 2 spaces. This table format is the default format used by the NodeJS oclif table function, btw.

I realize that the current asciiparser parser cant solve this (that requires the column names to be separated by 2+ spaces). However, in case someone decides to make an even more generic parser, I wanted to leave this sample here, so that they can at least consider making it compatible for this format :)

Btw: I found jc today, and I think I love it :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions