1.0.0 • Published 9 years ago

melinda-api-mock v1.0.0

Weekly downloads
1
License
ISC
Repository
-
Last release
9 years ago

melinda-api-mock

A mock of melinda api. This module can be used to test things that depend on melinda api.

Installation

npm install melinda-api-mock

Usage

var MockAPI = require('melinda-api-mock');

var api = new MockAPI({
	recordsDir: "records/" // a directory where to read the requested marcxml records from
});

The constructor returns an instance of http.Server

// to start the api:
api.listen(port, cb);