jcdl

0.3.0 • Public • Published

jcdl Build Status Code Climate Test Coverage

Client-side JSON to CSV file downloads made easy.

Pass in a JavaScript object, get back a data-uri link to instantly download data as a CSV file.

Built with..

The heavy lifting (JSON to CSV transformation) is done with https://github.com/evanplaice/jquery-csv.

Additional credit to..

API inspiration comes from https://github.com/konklone/json

Installation

Install with NPM..

npm install --save jcdl

Install with bower..

bower install --save jcdl

Getting started

// Array of objects
var json = [...]

var $downloadLink = $.jcdl.getDownloadLink(json);

$('#main').append($downloadLink);

License

MIT License Copyright (c) 2016 Joel Colucci

Package Sidebar

Install

npm i jcdl

Weekly Downloads

2

Version

0.3.0

License

MIT

Last publish

Collaborators

  • joelcolucci