0.2.0 • Published 5 years ago

@sigeo/export-to-csv v0.2.0

Weekly downloads
2
License
GPL3
Repository
github
Last release
5 years ago

Export to CSV

Simple way to generate a CSV from Vanilla JS!

We working on live demo, give us little more time!

Installation

This package is available as an npm package.

// With npm
npm install @sigeo/export-to-csv

// With yarn
yarn add @sigeo/export-to-csv

Usage

Pass an array of arrays to exportToCsv function imported by @sigeo/export-to-csv package. Each array will be a row in the CSV.

Here is a quick example to get you started, it's all you need:

import exportToCsv from '@sigeo/export-to-csv';

exportToCsv([
  ['Header1', 'Header2', 'Header3'],
  ['Row 1 - Data 1', 'Row 1 - Data 2', 'Row 1 - Data 3'],
  ['Row 2 - Data 1', 'Row 2 - Data 2', 'Row 2 - Data 3'],
  ['Row 3 - Data 1', 'Row 3 - Data 2', 'Row 3 - Data 3', 'Row 3 - Data 4']
]);

License

Copyright © 2019 Sigeo S.R.L

Licensed under a GPL3+ license: http://www.gnu.org/licenses/gpl-3.0.txt

0.2.0

5 years ago

0.1.0

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago