0.1.5 • Published 3 years ago

eleventy-plugin-xlsx v0.1.5

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
3 years ago

eleventy-plugin-xlsx

Uses the Xlsx package to convert excel spreadsheets to json data files and saves the output to the eleventy _data directory

Install

$npm install eleventy-plugin-xlsx --save-dev

Usage

The default directory for excel files is /_xlsx. Any excel workbooks saved the /_xlsx directory will be parsed, converted to JSON, and saved to /_data/xlsx. These default directories can be overridden in the options array passed to the plugin.

const parseExcelData = require("eleventy-plugin-xlsx");

// Default paths shown
module.exports = function (eleventyConfig) {
  eleventyConfig.addPlugin(parseExcelData, {
    xlsxPath: "./_xlsx",
    dataPath: "./_data/xlsx"
  });
}
0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago