Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Commits on Oct 23, 2014
  1. Guillermo Rauch

    Merge pull request #31 from FGRibreau/master

    rauchg authored
    Test with null/undefined as values or column name
  2. Francois-Guillaume Ribreau
  3. Francois-Guillaume Ribreau

    Merge branch 'master' of github.com:Automattic/cli-table

    FGRibreau authored
    Conflicts:
    	lib/index.js
Commits on Oct 22, 2014
  1. Guillermo Rauch

    Release 0.3.1

    rauchg authored
  2. Guillermo Rauch

    fix example for new paths

    rauchg authored
  3. Guillermo Rauch

    Merge pull request #49 from stevenvachon/master

    rauchg authored
    Safe colors, lighter production installs, travis badges
  4. Steven Vachon

    Corrections

    stevenvachon authored
  5. Guillermo Rauch

    Merge pull request #48 from ljharb/patch-1

    rauchg authored
    Add repository field to package.json
  6. Steven Vachon

    Version bump

    stevenvachon authored
  7. Steven Vachon

    Readme badges

    stevenvachon authored
  8. Steven Vachon
  9. Steven Vachon

    Safe colors

    stevenvachon authored
Commits on Aug 31, 2014
  1. Jordan Harband

    Add repository field to package.json

    ljharb authored
    It took me forever to locate this repo, since https://www.npmjs.org/package/cli-table doesn't point to it. Republishing the `npm` module will ensure that people can find the repo from the `npm` module.
Commits on Feb 23, 2014
  1. Guillermo Rauch

    Merge pull request #40 from tmsh/master

    rauchg authored
    In addition to 256-xterm ansi colors, handle 24-bit colors.
Commits on Feb 22, 2014
  1. In addition to 256-xterm ansi colors, handle 24-bit colors. E.g., of …

    Tom Harada authored
    …the form ESC[ … 38;2;<r>;<g>;<b>. Slight tweak in regex.
Commits on Feb 2, 2014
  1. Guillermo Rauch

    Merge pull request #33 from sonnym/travis_integration

    rauchg authored
    set up .travis.yml
  2. Guillermo Rauch

    Release 0.3.0

    rauchg authored
  3. Guillermo Rauch

    Merge pull request #36 from possibilities/fix/colors

    rauchg authored
    Upgrade colors to avoid npm broken-ness
  4. Mike Bannister
Commits on Jan 26, 2014
  1. Guillermo Rauch

    Merge pull request #27 from mal/patch-1

    rauchg authored
    Strip color codes that include ';'
Commits on Jan 25, 2014
  1. Mal Graty

    Handle custom colored strings correctly

    mal authored
    Currently strlen ignores any color code that makes use of ';', this
    includes light colors as well as 256 color codes. This adjusts the regex
    to detect these other color types.
Commits on Dec 19, 2013
  1. Nathan Rajlich

    Merge pull request #34 from charleshimmer/leaking-global

    TooTallNate authored
    Fixing global leak of width variable.
  2. Charles Himmer
  3. Charles Himmer
Commits on Dec 6, 2013
  1. Francois-Guillaume Ribreau
Commits on Dec 1, 2013
  1. Sonny Michaud

    set up .travis.yml

    sonnym authored
Commits on Nov 8, 2013
  1. Francois-Guillaume Ribreau
Commits on Jun 22, 2013
  1. Guillermo Rauch

    Merge pull request #24 from em-/no-decoration

    rauchg authored
    Print compact tables with no decorations
Commits on Mar 19, 2013
  1. Emanuele Aina

    Omit horizontal decoration lines if empty

    em- authored
    This allows for more flexible compact layouts: even the compact mode can
    be redefined in terms of 'chars' settings by using the empty string for all the
    horizontal 'mid' characters.
    
    By using the following configuration:
     var table = new Table({
       chars: {
           'mid': ''
         , 'left-mid': ''
         , 'mid-mid': ''
         , 'right-mid': ''
       },
       style: {
           head: []
         , border: []
       }
     });
    
    it's now possible to get results like this (note the lack of the horizontal
    line between rows):
     ┌────────────┬─────┬──────┐
     │ foo        │ bar │ baz  │
     │ frobnicate │ bar │ quuz │
     └────────────┴─────┴──────┘
    
    By setting all chars to empty with the exception of 'middle' being set to a
    single space and by setting padding to zero, it's possible to get the
    most compact layout with no decorations:
     foo        bar baz
     frobnicate bar quuz
Commits on Mar 17, 2013
  1. Emanuele Aina
  2. Emanuele Aina

    Make line() return the generated string instead of appending it to ret

    em- authored
    This makes reasoning about the newly created line easier, to eg. skip
    empty lines.
  3. Emanuele Aina

    Customize the vertical cell separator separately from the right one

    em- authored
    WARNING: this breaks compatibility if you rely on setting
    options.chars.right to set the vertical cell separator too.
    
    Given the following table:
     ┌────────┬────────┬────────┐
     │ foo    │ bar    │ baz    │
     └────────┴────────┴────────┘
    
    it's now possible to double the outer border only:
     ╔════════╤════════╤════════╗
     ║ foo    │ bar    │ baz    ║
     ╚════════╧════════╧════════╝
    
    just set the appropriate chars, using the new 'middle' property:
     var table = new Table({
       , style: {
           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': '│'
           }
         }
     });
Commits on Jan 26, 2013
  1. Guillermo Rauch

    Merge pull request #20 from thomd/bordercolor

    rauchg authored
    color styling of table border
  2. Guillermo Rauch

    Merge pull request #22 from isao/master

    rauchg authored
    allow newer versions of colors to be used
  3. Isao Yagi

    allow newer versions of colors to be used

    isao authored
    later versions of colors allow switching off escape codes like:
    
        if (!process.stdout.isTTY) {
            colors.mode = 'none';
        }
Something went wrong with that request. Please try again.