Print.js
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:
- Add the reference to the plugin in your `HTML':
<script src='./dist/csvjs.min.js'></script>
- 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.