Browse plugins

plugin-export-delimited-zip

A Flatfile plugin for exporting Workbooks to delimited files and zipping them together

Install
npm i @flatfile/plugin-export-delimited-zip
Source:
View source
Package:
@flatfile/plugin-export-delimited-zip 1 installs
Dependencies
@flatfile/plugin-job-handler@^0.8.0, @flatfile/util-common@^1.6.0 (+2 more)

The @flatfile/plugin-export-delimited-zip plugin exports data from Flatfile sheets to delimited files (e.g., CSV) and compresses them into a ZIP file. This plugin provides an efficient way to download and package your data from Flatfile workbooks.

Event Type: job:ready

When embedding Flatfile, this plugin should be deployed in a server-side listener. Learn more

Parameters

job - string

The job name to trigger the export. Default: 'downloadDelimited'

delimiter - string

The delimiter to use in the exported files. Default: ','

fileExtension - string

The file extension for the exported files. Default: 'csv'

debug - boolean - (optional)

Enable debug logging. Default: false

API Calls

  • api.jobs.ack
  • api.jobs.complete
  • api.jobs.fail
  • api.sheets.list
  • api.records.get
  • api.files.upload

Usage

install

npm install @flatfile/plugin-export-delimited-zip

listener.ts

import type { FlatfileListener } from '@flatfile/listener'
import { exportDelimitedZip } from '@flatfile/plugin-export-delimited-zip'

export default function (listener: FlatfileListener) {
  listener.use(exportDelimitedZip({
      job: 'export-delimited-zip',
      delimiter: ',',
      fileExtension: 'csv',
    }))
}