knd-html-table-to-xlsx

1.0.4 • Public • Published

knd-html-table-to-xlsx

knd-html-table-to-xlsx is a .xlsx generator from html table elements

Installation

npm i knd-html-table-to-xlsx

Usage

Client side:

//to get a string of table element
const htmlTable = document.getElementsByTagName('table')[0].outerHTML

//after this, send this array of strings to the server side to call the generateSheet  function

Server side:

const {generateSheet} = require('knd-html-table-to-xlsx')

//generate the .xlsx file and print the absolute path where the file was created
const app = async (tables) => {
    console.log(await generateSheet(tables));
}

/knd-html-table-to-xlsx/

    Package Sidebar

    Install

    npm i knd-html-table-to-xlsx

    Weekly Downloads

    0

    Version

    1.0.4

    License

    ISC

    Unpacked Size

    7.21 kB

    Total Files

    4

    Last publish

    Collaborators

    • knd_desenv