Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

csv-converter-to-pdf-and-html

kanrinha172MIT1.0.2

Convertendo excel (csv) para HTML e PDF

converter, excel-to-html, excel-to-pdf, csv-to-pdf

readme

csv-converter-to-html-and-pdf

Program to convert excel (CSV) to HTML and PDF using OO in JavaScript with Node.js


Instalação:

    npm install --save csv-converter-to-pdf-and-html

Como usar:

    const Converter = require("csv-converter-to-pdf-and-html")
    const path = require("path")

    const converter = new Converter()

    const filePath = path.resolve("./users.csv") // Caminho completo
    const destinationPath = path.resolve("./HTMLandPDF") // Aqui não precisa especificar a extensão (HTML or PDF)

    converter.HTMLAndPDFConverter(filePath, destinationPath)

Outras funções:

    converter.HTMLConverter(filePath, destinationPath)
    converter.PDFConverter(filePath, destinationPath)