https://github.com/mclander/excel-loader
Webpack excel loader
https://github.com/mclander/excel-loader
Last synced: 8 months ago
JSON representation
Webpack excel loader
- Host: GitHub
- URL: https://github.com/mclander/excel-loader
- Owner: mclander
- License: mit
- Created: 2017-03-23T09:14:30.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-10-18T10:23:13.000Z (over 6 years ago)
- Last Synced: 2025-02-18T08:40:12.015Z (over 1 year ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Webpack Excel loader
## Purpose
This Excel loader magically inject data from excel file to your webpack project.
## Installation
Install with npm:
```
npm install excel-loader
```
## Usage
Add the excel-loader to your webpack configuration:
``` javascript
const config = {
module: {
rules: [
{
test: /\.xls.?$/,
loader: 'excel-loader'
}
]
}
```
The loader will translate excel files into JSON, exactly as node-xlsx do (just on build).
## Tips
For convert Excel Date to JS date you can use this [gist by Cristopher Scott](https://gist.github.com/christopherscott/2782634)
## Credits
* Inspired by [csv-loader](https://github.com/theplatapi/csv-loader) which inspired by [dsv-loader](https://github.com/wbkd/dsv-loader) which inspired by [json-loader](https://github.com/webpack-contrib/json-loader)
* Excel slurping done with [node-xlsx](https://github.com/mgcrea/node-xlsx) over the awesome [xlsx](https://github.com/SheetJS/js-xlsx)!
[npm-url]: https://npmjs.com/package/excel-loader