convert-table

0.2.0 • Public • Published

Convert Table

Build Status

convert different json, xls, xlsx, tsv, csv, xml file types to table in nodejs

Install

  npm install convert-table

Usage

  CvTb = require("convert-table");
  CvTb({
    input: "sample.xlsx",
    table: {
      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': '' }
    }
  }, function(table){
   table.show() // call show method to show up the table
  });
  • Settings

Preview

preview

License

MIT @chilijung

Dependencies (2)

Dev Dependencies (2)

Package Sidebar

Install

npm i convert-table

Weekly Downloads

3

Version

0.2.0

License

MIT

Last publish

Collaborators

  • chilijung