node-vitals
Version:
Do more with less. A simple, high-performing, functional JavaScript library.
38 lines (32 loc) • 1.06 kB
JavaScript
/**
* -----------------------------------------------------------------------------
* ACT TASK HELPER: mkDoc
* -----------------------------------------------------------------------------
* @author Adam Smith <adam@imaginate.life> (https://github.com/imaginate)
* @copyright 2017 Adam A Smith <adam@imaginate.life> (https://github.com/imaginate)
*
* Annotations:
* @see [JSDoc3](http://usejsdoc.org)
* @see [Closure Compiler JSDoc Syntax](https://developers.google.com/closure/compiler/docs/js-for-compiler)
*/
;
var mkHeader = require('./mk-header');
var mkBody = require('./mk-body');
var mkFooter = require('./mk-footer');
/**
* @param {string} content
* @param {string=} fscontent
* @return {string}
*/
module.exports = function mkDoc(content, fscontent) {
/** @type {string} */
var header;
/** @type {string} */
var footer;
/** @type {string} */
var body;
header = mkHeader(content, fscontent);
body = mkBody(content, fscontent);
footer = mkFooter(content, fscontent);
return header + body + footer;
};