Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 1.53 KB

API.md

File metadata and controls

33 lines (23 loc) · 1.53 KB

Module API and usage

Auto-generate randomized abstract style content from the "Data and Analysis" section of RevMan files.

This project takes in a RevMan file, combines it with a suitable grammar and returns a HTML page of generated content.

var revmanReplicant = require('revman');

revmanReplicant({
	revman: './test/data/antibiotics-for-sore-throat.rm5',
	grammar: './grammars/hal-en.html',
}, function(err, res) {
	// Res should now be a Abstract-suitable HTML string
});

See the test directory for more complex usage examples.

API

This module exposes a single function which can be called with the following table of options. It will return a callback in the usual (error, response) style - where response will be the generated abstract.

Parameter Type Description
revman String / Object Either a (string) path to the RevMan file to use or the already computed object (via the RevMan module)
grammar String The path to the grammar file to use to compute the output

Back to Table of Contents