node-csv2api

0.0.1 • Public • Published

node-csv2api

Node module to create a rest api from a csv file.

From the csv file a levelDB database will be generated for quering the content via a key. This key could be a column of the csv file (or a combination of them, just remember that keys will need to be unique).

The api answer to simple GET request, and query parameters based on what columns where indexed.

build status

Installation

This module is installed via npm:

$ npm install node-csv2api

Example Usage

./bin/csv2api create ./register.csv --cols email

This will index the rows in the register.csv file by the column email. This step just creates the database.

For serving the content just do:

./bin/csv2api serve --cols email

Then go to: http://localhost:3000/?email=<email>

Readme

Keywords

none

Package Sidebar

Install

npm i node-csv2api

Weekly Downloads

0

Version

0.0.1

License

BSD-3-Clause

Last publish

Collaborators

  • francisco.jordano