Skip to content
Convert Excel files to HTML
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example init Feb 27, 2019
lib [dev] incorrect .gitignore Mar 6, 2019
.gitignore [dev] incorrect .gitignore Mar 6, 2019
README.md [dev] npm badge added to the readme file Mar 28, 2019
package.json [dev] correct link to github repo Mar 28, 2019
result.png Add files via upload Mar 7, 2019
rollup.config.js init Feb 27, 2019
theme.css init Feb 27, 2019
yarn.lock init Feb 27, 2019

README.md

Excel2table

npm version

Excel2table is a library that will help you to render an Excel file as an HTML table. It uses https://github.com/dhtmlx/excel2json for Excel parsing.

result

How to use

  • import the library:
import "excel2table";
  • call the render function:
excel2table.render(html_container, data, config);

The parameters of the function are the following:

  • html_container - a CSS locator or an HTML element
  • data - a file object or a data blob
  • config - optional, a configuration object { worker, scale }, where
    • worker: string - an URL for a web worker; CDN is used by default
    • scale: boolean - defines whether Excel scale is shown

License

MIT

You can’t perform that action at this time.