root 3bf41bf355 update %!s(int64=3) %!d(string=hai) anos
..
opts 3bf41bf355 update %!s(int64=3) %!d(string=hai) anos
src 3bf41bf355 update %!s(int64=3) %!d(string=hai) anos
tag 3bf41bf355 update %!s(int64=3) %!d(string=hai) anos
tutorial 3bf41bf355 update %!s(int64=3) %!d(string=hai) anos
util 3bf41bf355 update %!s(int64=3) %!d(string=hai) anos
app.js 3bf41bf355 update %!s(int64=3) %!d(string=hai) anos
augment.js 3bf41bf355 update %!s(int64=3) %!d(string=hai) anos
borrow.js 3bf41bf355 update %!s(int64=3) %!d(string=hai) anos
config.js 3bf41bf355 update %!s(int64=3) %!d(string=hai) anos
doclet.js 3bf41bf355 update %!s(int64=3) %!d(string=hai) anos
env.js 3bf41bf355 update %!s(int64=3) %!d(string=hai) anos
fs.js 3bf41bf355 update %!s(int64=3) %!d(string=hai) anos
name.js 3bf41bf355 update %!s(int64=3) %!d(string=hai) anos
package.js 3bf41bf355 update %!s(int64=3) %!d(string=hai) anos
path.js 3bf41bf355 update %!s(int64=3) %!d(string=hai) anos
plugins.js 3bf41bf355 update %!s(int64=3) %!d(string=hai) anos
readme.js 3bf41bf355 update %!s(int64=3) %!d(string=hai) anos
schema.js 3bf41bf355 update %!s(int64=3) %!d(string=hai) anos
tag.js 3bf41bf355 update %!s(int64=3) %!d(string=hai) anos
template.js 3bf41bf355 update %!s(int64=3) %!d(string=hai) anos
tutorial.js 3bf41bf355 update %!s(int64=3) %!d(string=hai) anos

readme.js

/**
* Make the contents of a README file available to include in the output.
* @module jsdoc/readme
*/
const env = require('jsdoc/env');
const fs = require('jsdoc/fs');
const markdown = require('jsdoc/util/markdown');

/**
* Represents a README file.
*/
class ReadMe {
/**
* @param {string} path - The filepath to the README.
*/
constructor(path) {
const content = fs.readFileSync(path, env.opts.encoding);
const parse = markdown.getParser();

this.html = parse(content);
}
}

module.exports = ReadMe;