egg-xlsx
read the excel file content plugin for egg framework, based on js-xlsx
Install
$ npm i egg-xlsx --save
Usage
// {app_root}/config/plugin.jsexportsxlsx = enable: true package: 'egg-xlsx';
Configuration
// {app_root}/config/config.default.jsexportsxlsx = ;
see config/config.default.js for more detail.
Example
Upload the xlsx file and get the content
// {app_root}/app/controller/xlsx.jsconst Contrller = Controller async { const ctx app = this const res = await appxlsx ctxbody = res }moduleexports = XlsxController
More function
Questions & Suggestions
Please open an issue here.