Skip to content
This repository has been archived by the owner on May 29, 2018. It is now read-only.

Commit

Permalink
Merge pull request #79 from felixfbecker/commonjs
Browse files Browse the repository at this point in the history
Add CommonJS / NPM support
  • Loading branch information
TorsteinHonsi committed Jan 21, 2016
2 parents b7f5677 + a8828eb commit 2210b5d
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 2 deletions.
10 changes: 8 additions & 2 deletions export-csv.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@
* Version: 1.3.8
*/
/*global Highcharts, window, document, Blob */
(function (Highcharts) {
(function (factory) {
if (typeof module === 'object' && module.exports) {
module.exports = factory;
} else {
factory(Highcharts);
}
})(function (Highcharts) {

'use strict';

Expand Down Expand Up @@ -301,4 +307,4 @@
});
}

}(Highcharts));
});
34 changes: 34 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"name": "highcharts-export-csv",
"version": "1.3.8",
"description": "Highcharts plugin to export the chart data to CSV, XLS or HTML table",
"keywords": [
"export",
"csv",
"xls"
],
"main": "export-csv.js",
"author": {
"name": "Torstein Hønsi",
"url": "https://github.com/highslide-software"
},
"contributors": [
{
"name": "Torgrim Thorsen",
"url": "https://github.com/SirAlexiner",
"email": "[email protected]"
}
],
"repository": {
"type": "git",
"url": "https://github.com/highcharts/export-csv"
},
"peerDependencies": {
"highcharts": ">=3.0.0 <5.0.0"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/highcharts/export-csv/issues"
},
"homepage": "http://www.highcharts.com/plugin-registry/single/7/Export-CSV"
}

0 comments on commit 2210b5d

Please sign in to comment.