0.0.7 • Published 10 years ago

dashes.js v0.0.7

Weekly downloads
7
License
MIT
Repository
github
Last release
10 years ago

#dashes.js

Convert Javascript Objects to text tables for pandoc multiline tables.

##Usage

var dashes = require('dashes.js');

var headers = [
    {title: 'Description'},
    'Info'
];

var rows = [
    [
        'Writing some words here\nthat span\nmultiple lines',
        'asd\nzxc',
    ],
    [
        7,
        'info',
        'Hello'
    ]
];

var table = dashes(rows, headers);

console.log(table);

/*
    Expected output:
    ----------------------------------------
    Description               Info  
    ------------------------- ------ -------
    Writing some words here   asd   
    that span                 zxc   
    multiple lines           

                         7,00 info   Hello  
    ----------------------------------------
 */
0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago

0.0.0

10 years ago