This package has been deprecated

Author message:

This package is deprecated, please use "object-exporter" package instead. The new package (object-exporter) has additional functionalities such as export to XLS with custom styles. Also please send your feature requests via github for future releases. Thank you! you are awesome!

obj2csv

2.0.3 • Public • Published

Print.js

Build Status Software License Standard - JavaScript Style Guide npm

Little JavaScript plugin to generate CSV files.

Installation

You can download the latest version of obj2csv from the GitHub releases.

Configuration

In order use this plugin, following steps have to be taken:

  1. Add the reference to the plugin in your `HTML':
<script src='./dist/csvjs.min.js'></script>
  1. Add the following JavaScript code to your code to print your object:
obj2csv({
    exportable: data
})

Note: data must be an object which needs to be printed out.

Setting up a DEV environment

In order to have this project as a development environment, following steps have to be taken:

npm install
npm run watch

Also in order to test the code:

npm install httpserver -g
httpserver

Then in order to test the plugin, navigate to the following page: http://localhost:8080/test.html

License

obj2csv is available under the MIT license.

Readme

Keywords

Package Sidebar

Install

npm i obj2csv

Weekly Downloads

0

Version

2.0.3

License

MIT

Unpacked Size

19.7 kB

Total Files

12

Last publish

Collaborators

  • gharibi