Socket
Book a DemoInstallSign in
Socket

@koopjs/output-csv

Package Overview
Dependencies
Maintainers
0
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@koopjs/output-csv

A Koop output plugin for CSV

latest
Source
npmnpm
Version
0.0.4
Version published
Maintainers
0
Created
Source

Koop Output CSV

Coverage

This is a Koop output plugin that transforms data from Koop Provider into a CSV file.

Use

The plugin uses highly customizable CSV template in JSON for field mapping with provider's data which can be passed via Koop instance. The options for the plugin are csvTemplate, csvTemplateTransforms and csvFileName. Both csvTemplate, csvTemplateTransforms can be request (res.locals) specific and/or application (app.locals) specific set in Koop server middleware. csvFileName is request (res.locals) specific used for naming CSV filename.

adlib is used to interpolate template.

Visit the KoopJS docs for instructions on building and deploying a Koop app.

Develop

# 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

Test

Run the npm t commmand to spin up the automated tests.

FAQs

Package last updated on 11 Jan 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts