This is a Koop output plugin that transforms data from Koop Provider into a CSV file.
The plugin uses highly customizable CSV template in JSON for field mapping which needs to be passed via Koop instance in res.locals.csvTemplate
, koop.server.locals.csvTemplateTransforms
. adlib is used to interpolate template. koop.server.locals.csvFileName
is used for naming CSV filename.
Visit the KoopJS docs for instructions on building and deploying a Koop app.
# clone and install dependencies
git clone https://github.com/koopjs/koopjs-output-csv
cd koopjs-output-csv
npm i
# starts the example Koop app found in ./example-app.
npm run dev
Run the npm t
commmand to spin up the automated tests.