Skip to content

Latest commit

 

History

History
27 lines (22 loc) · 1.03 KB

README.md

File metadata and controls

27 lines (22 loc) · 1.03 KB

csv-serve

NPM version License Downloads

Serve csv files as json REST API

Usage

csv-serve [options] csv_folder

if csv_folder is missing, current folder will be used

options

- `port` port to listen
- `trim` whether or not trim each cell, default `true`
- `axis` default is `row`, csv will be converted to an array of objects representing each line in csv, if `axis` is `col`, csv will be converted to an object, each property representing column in csv
- `delimiter` csv delimiter, default `,`
- `prefix` set the prefix of request path to match, default '/'