node package manager



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


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>