0.0.4 • Published 1 year ago

csvwritergen v0.0.4

Weekly downloads
-
License
(LGPL-3.0)
Repository
github
Last release
1 year ago

CsvWriter

Simple csvwriter browser downloader generator JS

Development

Docker container running lite-server and watching code changes

make watch

Results can be tested in demos:

Generate bundle

Local bundle pack with project name and actual project version in root folder

make bundle

More

To see all make commands

make help

Installation

yarn add csvwritergen

Or directly in the HTML file

<!-- Add to the bottom of body HTML tag -->
<script src="./dist/csvwritergen.js"></script>

<!-- or directly from unpkg -->
<script src="https://unpkg.com/csvwritergen@latest/dist/csvwritergen.min.js"></script>

Run

// Utils library functions: toNormalForm and newElement can be imported here
import { CsvWriter } from "csvwritergen";

// Only this lines when included with script HTML tag
const csvwriter = new CsvWriter(header, rows);
await csvwriter.anchorElement("file-title");
0.0.3

1 year ago

0.0.2

1 year ago

0.0.4

1 year ago

0.0.1

1 year ago