Extensions & Integrations
XLSX format for Import Export Module
This module improves @apostrophecms/import-export by adding the xlsx
format.
Why does this specific format lies in another module?
Because it relies on a dependency that is not hosted on NPM, which could lead to installation issues on networks that limit connections to NPM repository only.
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-xlsx
Usage
Configure the module in the app.js
file:
require('apostrophe')({
shortName: 'my-project',
modules: {
'@apostrophecms/import-export': {},
'@apostrophecms/import-export-xlsx': {}
}
});
Please note that
apos
is not passed to theinput
andoutput
functions of the format, as they should remain agnostic of apostrophe and only deal with retrieving and writing the documents from/to the.xlsx
file.