UNPKG

556 BJavaScriptView Raw
1/** This file exports the functions / objects available to node packages
2 * which import auspice (e.g. via `const auspice = require("auspice")`)
3 *
4 * These are intended to be "helper functions" for those wishing to write
5 * their own auspice server, i.e. a server which handles the GET
6 * requests originating from a auspice client.
7 */
8
9
10const convertFromV1 = require("./cli/server/convertJsonSchemas").convertFromV1;
11const parseNarrativeFile = require("./cli/server/parseNarrative").default;
12
13module.exports = {
14 convertFromV1,
15 parseNarrativeFile
16};