melinda-api-mock

1.0.0 • Public • Published

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);


Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    2

Package Sidebar

Install

npm i melinda-api-mock

Weekly Downloads

2

Version

1.0.0

License

ISC

Last publish

Collaborators

  • natlibfi
  • petuomin