npm.io
1.0.1 • Published 7 years ago

excel-loader

Licence
MIT
Version
1.0.1
Deps
1
Size
3 kB
Vulns
0
Weekly
0
Stars
1

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:

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

Credits

Keywords