🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

baucis-csv

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

baucis-csv

Baucis CSV formatter plugin.

0.0.1
latest
Source
npm
Version published
Weekly downloads
1
-75%
Maintainers
1
Weekly downloads
 
Created
Source

baucis-csv

CSV Formatter plugin for Baucis Format streams of data as CSV.

Usage

  • Include the plugin: var baucisCsv = require('baucis-csv');
  • Register the plugin in baucis with: baucisCsv.apply(baucis);

Test

Query a baucis resource passing the MIME Header Accept: text/csv For example, using curl tool from the command line:

curl localhost:5000//api/myresource -H "Accept: text/csv"

Sample output:

HTTP/1.1 200 OK
Content-Type: text/csv; charset=utf-8

_id,name,surname,index,active,__v
53cff8081c6821a40eecd795,Alicia,Keys,12,true,0
53d9370ddc9707301e0801ea,Jessica,Alba,34,true,0

Keywords

baucis

FAQs

Package last updated on 26 Aug 2014

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