{"_id":"table2excel","_rev":"8-bd6c6acab207690381673ad38598d928","name":"table2excel","description":"convert and download html tables to a xlsx-file that can be opened in Microsoft Excel","dist-tags":{"latest":"1.0.4"},"versions":{"1.0.0":{"name":"table2excel","version":"1.0.0","description":"convert and download html tables to a xlsx-file that can be opened in Microsoft Excel","keywords":["html table","table","export","convert","download","file","xls","xlsx","microsoft","excel"],"author":{"name":"Matthias Fey","email":"matthias.fey@tu-dortmund.de","url":"http://rusty1s.github.io"},"repository":{"type":"git","url":"git://github.com/rusty1s/table2excel.git"},"license":"MIT","licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/MIT"}],"bugs":{"url":"http://github.com/rusty1s/table2excel/issues"},"main":"src/index.js","scripts":{"start":"webpack","lint":"eslint webpack.config.babel.js src test","test":"mocha --compilers js:babel-register"},"devDependencies":{"babel-core":"^6.10.4","babel-loader":"^6.2.4","babel-plugin-transform-array-from":"^1.0.0","babel-plugin-transform-object-assign":"^6.8.0","babel-plugin-transform-runtime":"^6.9.0","babel-plugin-transform-strict-mode":"^6.11.3","babel-polyfill":"^6.9.1","babel-preset-es2015":"^6.9.0","babel-register":"^6.9.0","babel-runtime":"^6.9.2","chai":"^3.5.0","eslint":"^2.9.0","eslint-config-airbnb":"^9.0.1","eslint-plugin-import":"^1.10.2","eslint-plugin-jsx-a11y":"^1.2.2","eslint-plugin-react":"^5.2.2","jsdom":"^9.4.1","mocha":"^3.0.0","mocha-jsdom":"^1.1.0","script-loader":"^0.7.0","webpack":"^1.13.1"},"dependencies":{"filesaver.js":"^0.2.0","object-assign":"^4.1.0","xlsx":"^0.8.0"},"gitHead":"1b94acc470c95c18ec55112f3b109f2c7b6f9efc","homepage":"https://github.com/rusty1s/table2excel#readme","_id":"table2excel@1.0.0","_shasum":"742e84378ccff501fbab661d39abac40c74c9569","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.1.0","_npmUser":{"name":"rusty1s","email":"matthias.fey@tu-dortmund.de"},"dist":{"shasum":"742e84378ccff501fbab661d39abac40c74c9569","tarball":"https://registry.npmjs.org/table2excel/-/table2excel-1.0.0.tgz","integrity":"sha512-oSOFVZBA64e8aU70nmJucN8uCyW6vF24Tw/5ynu/YCgCtW4p0zEJefDQLNbs4FxUGar1teJsBHnxyoqIvB9Byg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDb0dU0AT6qC6UXWGvdvOQMPdlrL1tpnk4U6FbRw0XRZwIhANJthQ2MxDuovTPAKRLwhLMwu7MN9amanpCtBV8VTO6S"}]},"maintainers":[{"name":"rusty1s","email":"matthias.fey@tu-dortmund.de"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/table2excel-1.0.0.tgz_1470137906917_0.15109407273121178"}},"1.0.1":{"name":"table2excel","version":"1.0.1","description":"convert and download html tables to a xlsx-file that can be opened in Microsoft Excel","keywords":["html table","table","export","convert","download","file","xls","xlsx","microsoft","excel"],"author":{"name":"Matthias Fey","email":"matthias.fey@tu-dortmund.de","url":"http://rusty1s.github.io"},"repository":{"type":"git","url":"git://github.com/rusty1s/table2excel.git"},"license":"MIT","licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/MIT"}],"bugs":{"url":"http://github.com/rusty1s/table2excel/issues"},"main":"dist/table2excel.js","scripts":{"start":"webpack","lint":"eslint webpack.config.babel.js src test","test":"npm start && mocha --compilers js:babel-register"},"devDependencies":{"babel-core":"^6.10.4","babel-loader":"^6.2.4","babel-plugin-transform-array-from":"^1.0.0","babel-plugin-transform-object-assign":"^6.8.0","babel-plugin-transform-runtime":"^6.9.0","babel-plugin-transform-strict-mode":"^6.11.3","babel-polyfill":"^6.9.1","babel-preset-es2015":"^6.9.0","babel-register":"^6.9.0","babel-runtime":"^6.9.2","chai":"^3.5.0","eslint":"^2.9.0","eslint-config-airbnb":"^9.0.1","eslint-plugin-import":"^1.10.2","eslint-plugin-jsx-a11y":"^1.2.2","eslint-plugin-react":"^5.2.2","jsdom":"^9.4.1","jsdom-global":"^2.0.0","mocha":"^3.0.0","mocha-jsdom":"^1.1.0","script-loader":"^0.7.0","webpack":"^1.13.1"},"dependencies":{"filesaver.js":"^0.2.0","xlsx-style":"^0.8.13"},"gitHead":"3101995d33c83c14708c2d1855a38ccdda2610a9","homepage":"https://github.com/rusty1s/table2excel#readme","_id":"table2excel@1.0.1","_shasum":"53ba1684e4a29e2fe6b764c4251c83638cb4738e","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.1.0","_npmUser":{"name":"rusty1s","email":"matthias.fey@tu-dortmund.de"},"dist":{"shasum":"53ba1684e4a29e2fe6b764c4251c83638cb4738e","tarball":"https://registry.npmjs.org/table2excel/-/table2excel-1.0.1.tgz","integrity":"sha512-LJWKaswCaB1sKp5oNcasQEPiUwr/3Pnryy5VmYt1HW8nnpm1MMkyTNdC6R52X2sYfY8QI9uhxeOM1Gfy1KLXJQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBizZGLAIK1aa6g989m0sGkBGGXEmOn45SIxmREGAHKDAiEApYt1yv2UIcShMq33TEIobJeWUtphychvpCwOZ0ze+iU="}]},"maintainers":[{"name":"rusty1s","email":"matthias.fey@tu-dortmund.de"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/table2excel-1.0.1.tgz_1470219216525_0.4524210684467107"}},"1.0.2":{"name":"table2excel","version":"1.0.2","description":"convert and download html tables to a xlsx-file that can be opened in Microsoft Excel","keywords":["html table","table","export","convert","download","file","xls","xlsx","microsoft","excel"],"author":{"name":"Matthias Fey","email":"matthias.fey@tu-dortmund.de","url":"http://rusty1s.github.io"},"repository":{"type":"git","url":"git://github.com/rusty1s/table2excel.git"},"license":"MIT","licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/MIT"}],"bugs":{"url":"http://github.com/rusty1s/table2excel/issues"},"main":"dist/table2excel.js","scripts":{"start":"webpack","lint":"eslint webpack.config.babel.js src test","test":"npm start && mocha --compilers js:babel-register"},"devDependencies":{"babel-core":"^6.10.4","babel-loader":"^6.2.4","babel-plugin-transform-array-from":"^1.0.0","babel-plugin-transform-object-assign":"^6.8.0","babel-plugin-transform-runtime":"^6.9.0","babel-plugin-transform-strict-mode":"^6.11.3","babel-polyfill":"^6.9.1","babel-preset-es2015":"^6.9.0","babel-register":"^6.9.0","babel-runtime":"^6.9.2","chai":"^3.5.0","eslint":"^2.9.0","eslint-config-airbnb":"^9.0.1","eslint-plugin-import":"^1.10.2","eslint-plugin-jsx-a11y":"^1.2.2","eslint-plugin-react":"^5.2.2","jsdom":"^9.4.1","jsdom-global":"^2.0.0","mocha":"^3.0.0","mocha-jsdom":"^1.1.0","script-loader":"^0.7.0","webpack":"^1.13.1"},"dependencies":{"filesaver.js":"^0.2.0","xlsx-style":"^0.8.13"},"gitHead":"61ee76678dc16c2c5c5c7e331b04d53bca34ec83","homepage":"https://github.com/rusty1s/table2excel#readme","_id":"table2excel@1.0.2","_shasum":"597f2c93f40b6e75d58b364fb6bd4b7f5dc2983d","_from":".","_npmVersion":"2.15.8","_nodeVersion":"4.4.7","_npmUser":{"name":"rusty1s","email":"matthias.fey@tu-dortmund.de"},"dist":{"shasum":"597f2c93f40b6e75d58b364fb6bd4b7f5dc2983d","tarball":"https://registry.npmjs.org/table2excel/-/table2excel-1.0.2.tgz","integrity":"sha512-eJeu5CVSGLQwnODYRvRG85Nw23MJwXQfxu3ikHQAP0X4HUrxCuRsNUa+YzXn/PbR4Wjgl9s74bTtUthFDODvBA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBvBL1S6Ar0+OQsTKiYRUO5/vsA17hTiu+0MfMGC10yWAiAXyyrNYzHCbculzJmaEDPTkyPlchdXGm2A23ZD404L3A=="}]},"maintainers":[{"name":"rusty1s","email":"matthias.fey@tu-dortmund.de"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/table2excel-1.0.2.tgz_1471944696464_0.4428450111299753"}},"1.0.3":{"name":"table2excel","version":"1.0.3","description":"convert and download html tables to a xlsx-file that can be opened in Microsoft Excel","keywords":["html table","table","export","convert","download","file","xls","xlsx","microsoft","excel"],"author":{"name":"Matthias Fey","email":"matthias.fey@tu-dortmund.de","url":"http://rusty1s.github.io"},"repository":{"type":"git","url":"git://github.com/rusty1s/table2excel.git"},"license":"MIT","licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/MIT"}],"bugs":{"url":"http://github.com/rusty1s/table2excel/issues"},"main":"dist/table2excel.js","scripts":{"start":"webpack","lint":"eslint webpack.config.babel.js src test","test":"npm start && mocha --compilers js:babel-register"},"devDependencies":{"babel-core":"^6.10.4","babel-loader":"^6.2.4","babel-plugin-transform-array-from":"^1.0.0","babel-plugin-transform-object-assign":"^6.8.0","babel-plugin-transform-runtime":"^6.9.0","babel-plugin-transform-strict-mode":"^6.11.3","babel-polyfill":"^6.9.1","babel-preset-es2015":"^6.9.0","babel-register":"^6.9.0","babel-runtime":"^6.9.2","chai":"^3.5.0","eslint":"^2.9.0","eslint-config-airbnb":"^9.0.1","eslint-plugin-import":"^1.10.2","eslint-plugin-jsx-a11y":"^1.2.2","eslint-plugin-react":"^5.2.2","jsdom":"^9.4.1","jsdom-global":"^2.0.0","mocha":"^3.0.0","mocha-jsdom":"^1.1.0","script-loader":"^0.7.0","webpack":"^1.13.1"},"dependencies":{"filesaver.js":"^0.2.0","xlsx-style":"^0.8.13"},"gitHead":"6b3a55ac6103c466c16dca6f254232536ba6b5cc","homepage":"https://github.com/rusty1s/table2excel#readme","_id":"table2excel@1.0.3","_shasum":"a43a0fa4e2d35807ffb0bc0a543d22c0846b3df0","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.8.1","_npmUser":{"name":"rusty1s","email":"matthias.fey@tu-dortmund.de"},"dist":{"shasum":"a43a0fa4e2d35807ffb0bc0a543d22c0846b3df0","tarball":"https://registry.npmjs.org/table2excel/-/table2excel-1.0.3.tgz","integrity":"sha512-he2kCFXiAG8ynIhj1V+8y7kLJbztoT0uMpcewgHdGBE63PIz1Juykp/ea4Ls7GF/Z4C5bRICXCpvcZSCPjKLmA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCPV7Y1FNcLkIpZnP08j6ReZ8/cU1gB9OCiuFBPhWN1NgIhANBMYAUi34eUpQPRSqfIM1QE4ACweRheWeX9Q8SNpe8p"}]},"maintainers":[{"name":"rusty1s","email":"matthias.fey@tu-dortmund.de"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/table2excel-1.0.3.tgz_1477480935803_0.9728164819534868"}},"1.0.4":{"name":"table2excel","version":"1.0.4","description":"convert and download html tables to a xlsx-file that can be opened in Microsoft Excel","keywords":["html table","table","export","convert","download","file","xls","xlsx","microsoft","excel"],"author":{"name":"Matthias Fey","email":"matthias.fey@tu-dortmund.de","url":"http://rusty1s.github.io"},"repository":{"type":"git","url":"git://github.com/rusty1s/table2excel.git"},"license":"MIT","licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/MIT"}],"bugs":{"url":"http://github.com/rusty1s/table2excel/issues"},"main":"dist/table2excel.js","scripts":{"start":"webpack","lint":"eslint webpack.config.babel.js src test","test":"npm start && mocha --compilers js:babel-register"},"devDependencies":{"babel-core":"^6.10.4","babel-loader":"^6.2.4","babel-plugin-transform-array-from":"^1.0.0","babel-plugin-transform-object-assign":"^6.8.0","babel-plugin-transform-runtime":"^6.9.0","babel-plugin-transform-strict-mode":"^6.11.3","babel-polyfill":"^6.9.1","babel-preset-es2015":"^6.9.0","babel-register":"^6.9.0","babel-runtime":"^6.9.2","chai":"^3.5.0","eslint":"^2.9.0","eslint-config-airbnb":"^9.0.1","eslint-plugin-import":"^1.10.2","eslint-plugin-jsx-a11y":"^1.2.2","eslint-plugin-react":"^5.2.2","jsdom":"^9.4.1","jsdom-global":"^2.0.0","mocha":"^3.0.0","mocha-jsdom":"^1.1.0","script-loader":"^0.7.0","webpack":"^1.13.1"},"dependencies":{"filesaver.js":"^0.2.0","xlsx-style":"^0.8.13"},"gitHead":"983fd7468203c4c20f008cc05d4778050d07a58e","homepage":"https://github.com/rusty1s/table2excel#readme","_id":"table2excel@1.0.4","_shasum":"c40ea7a655b3f60f579655e7f82820669018c5e0","_from":".","_npmVersion":"4.0.2","_nodeVersion":"7.0.0","_npmUser":{"name":"rusty1s","email":"matthias.fey@tu-dortmund.de"},"dist":{"shasum":"c40ea7a655b3f60f579655e7f82820669018c5e0","tarball":"https://registry.npmjs.org/table2excel/-/table2excel-1.0.4.tgz","integrity":"sha512-4o8MEWMU6yN+biPvcaftyF1ROG3m5gi4CzlnXHa7De5XLfko3K7HrtwwjxKQXWuDL60w87Icih7N8KAh6vEv7A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDCsuU5I5weWRQOp4RExx76jqGjWouh0PVuHM4IgDQtrwIgbGmdyJjQBbBa3tiaFryCXUoRM8xEAchdHXAWRyPU5aI="}]},"maintainers":[{"name":"rusty1s","email":"matthias.fey@tu-dortmund.de"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/table2excel-1.0.4.tgz_1481104564728_0.26288314280100167"}}},"readme":"# table2excel\n\n`table2excel` is a ecma5 compiled vanilla javascript plugin to convert and download\nhtml tables to a xlsx-file that can be opened in Microsoft Excel.\n\nIt uses the awesome [js-xlsx](https://github.com/SheetJS/js-xlsx) plugin from\n[Sheet JS](https://github.com/SheetJS) as a dependency. Thanks!\n\n[Demo](https://rusty1s.github.io/table2excel/demo/)\n\n## Quick Start\n\n```html\n<script src=\"table2excel.js\"></script>\n\n<script>\n  var table2excel = new Table2Excel();\n  table2excel.export(document.querySelectorAll(\"table\"));\n</script>\n```\n\n## Node\n\n```js\n// npm install table2excel --save\nimport 'table2excel';\nconst Table2Excel = window.Table2Excel;\n\nconst table2excel = new Table2Excel(options);\n```\n\nSee my `webpack` configuration to see how to get `js-xlsx` running with `webpack` in the browser.\n\n## Additional options\n\nYou can pass in options as a parameter like `new Table2Excel(options)`.\nThe currently supported options are:\n\n* `defaultFileName`: The general file name of a downloaded document. Default: `'file'`.\nCan also be adjusted individually for `export` as a second parameter, e.g. `table2excel.export(table, \"cool table\");`.\n* `tableNameDataAttribute`: Data attribute name to identify the worksheet name of a table. Default: `'excel-name'`.\nUsage: `<table data-excel-name=\"Check this out\">...</table>`. If not set, worksheets are numbered incrementally\nfrom 1.\n\n## Cell type handlers\n\n`table2excel` detects a few special cells by default to display them correctly in Excel:\n\n* **Numbers**\n* **Inputs**: for `input[type=\"text\"]`, `select` or `textarea` elements\n* **Dates**: tries to parse the date or set the exact timestamp via `data-timestamp` on the cell (recommended!)\n* **Booleans**: parses `'true'`, `'false'` or checkboxes/radios without text to booleans\n* **Lists**: parses `<ul>...</ul>` or `<ol>...</ol>` list elements to `'..., ...'`\n\nEverything else will just get displayed as simple text. You can easily though add custom type handlers for your own needs:\n\n```js\nTable2Excel.extend((cell, cellText) => {\n  // {HTMLTableCellElement} cell - The current cell.\n  // {string} cellText - The inner text of the current cell.\n\n  // cell should be described by this type handler\n  if (selector) return {\n    t: ...,\n    v: ...,\n  };\n\n  // skip and run next handler\n  return null;\n});\n```\n\nThe return value must be a [js-xlsx cell object](https://github.com/SheetJS/js-xlsx#cell-object).\n\n## Contributing\n\nIf you would like to [submit a pull request](https://github.com/rusty1s/table2excel/pulls)\nwith any changes you make, please feel free!\nSimply run `npm test` to test and `npm start` to compile before submitting pull requests.\n\n## Issues\n\nPlease use the [GitHub issue tracker](https://github.com/rusty1s/table2excel/issues)\nto raise any problems or feature requests.\n","maintainers":[{"name":"rusty1s","email":"matthias.fey@tu-dortmund.de"}],"time":{"modified":"2022-06-27T03:28:59.712Z","created":"2016-08-02T11:38:29.172Z","1.0.0":"2016-08-02T11:38:29.172Z","1.0.1":"2016-08-03T10:13:38.565Z","1.0.2":"2016-08-23T09:31:38.209Z","1.0.3":"2016-10-26T11:22:18.260Z","1.0.4":"2016-12-07T09:56:06.659Z"},"homepage":"https://github.com/rusty1s/table2excel#readme","keywords":["html table","table","export","convert","download","file","xls","xlsx","microsoft","excel"],"repository":{"type":"git","url":"git://github.com/rusty1s/table2excel.git"},"author":{"name":"Matthias Fey","email":"matthias.fey@tu-dortmund.de","url":"http://rusty1s.github.io"},"bugs":{"url":"http://github.com/rusty1s/table2excel/issues"},"license":"MIT","readmeFilename":"README.md","users":{"edwardxyt":true}}