filefy
v0.1.11
Published
A javascript library to produce downloadable files sucs as in CSV, PDF, XLSX, DOCX formats
Downloads
268,848
Readme
filefy
A javascript library to produce downloadable files such as in CSV, PDF, XLSX, DOCX formats
Only CSV export is available for now!
Installation
To install filefy with npm
:
npm install --save filefy
To install filefy with yarn
:
yarn add filefy
Usage
import { CsvBuilder } from 'filefy';
var csvBuilder = new CsvBuilder("user_list.csv")
.setColumns(["name", "surname"])
.addRow(["Eve", "Holt"])
.addRows([
["Charles", "Morris"],
["Tracey", "Ramos"]
])
.exportFile();
Licence
This project is licensed under the terms of the MIT license.