@apostrophecms/import-export-xlsx
v1.1.0
Published
XLSX format for Import Export module
Readme
This module improves @apostrophecms/import-export by adding the xlsx format.
Why does this specific format live in another module?
Historically because it relied on a dependency that was not hosted on NPM. It now depends on @e965/xlsx, a registry-published mirror of SheetJS Community Edition with the same API, so it installs from the npm registry like any other module. The format remains in its own module for backwards compatibility.
Requirement
@apostrophecms/import-export should be installed and instantiated.
Please refer to the module's README before continuing.
Installation
To install the module, use the command line to run this command in an Apostrophe project's root directory:
npm install @apostrophecms/import-export-xlsxUsage
Configure the module in the app.js file:
require('apostrophe')({
shortName: 'my-project',
modules: {
'@apostrophecms/import-export': {},
'@apostrophecms/import-export-xlsx': {}
}
});Please note that
aposis not passed to theinputandoutputfunctions of the format, as they should remain agnostic of apostrophe and only deal with retrieving and writing the documents from/to the.xlsxfile.
