Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mbrn/filefy
A javascript library to produce downloadable files such as in CSV, PDF, XLSX, DOCX formats
https://github.com/mbrn/filefy
csv excel export file-export javascript pdf word
Last synced: 21 days ago
JSON representation
A javascript library to produce downloadable files such as in CSV, PDF, XLSX, DOCX formats
- Host: GitHub
- URL: https://github.com/mbrn/filefy
- Owner: mbrn
- License: mit
- Created: 2018-10-14T16:48:12.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-05-31T06:43:36.000Z (over 3 years ago)
- Last Synced: 2024-12-09T20:41:35.100Z (about 1 month ago)
- Topics: csv, excel, export, file-export, javascript, pdf, word
- Language: TypeScript
- Homepage:
- Size: 22.5 KB
- Stars: 44
- Watchers: 5
- Forks: 8
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# filefy
[![Build Status](https://travis-ci.org/mbrn/filefy.svg?branch=master)](https://travis-ci.org/mbrn/filefy)
[![npm package](https://img.shields.io/npm/v/filefy/latest.svg)](https://www.npmjs.com/package/filefy)
[![NPM Downloads](https://img.shields.io/npm/dt/filefy.svg?style=flat)](https://npmcharts.com/compare/filefy?minimal=true)
[![Follow on Twitter](https://img.shields.io/twitter/follow/baranmehmet.svg?label=follow+baranmehmet)](https://twitter.com/baranmehmet)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
```js
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](/LICENSE).