root e2ef550dc3 update 3 vuotta sitten
..
opts e2ef550dc3 update 3 vuotta sitten
src e2ef550dc3 update 3 vuotta sitten
tag e2ef550dc3 update 3 vuotta sitten
tutorial e2ef550dc3 update 3 vuotta sitten
util e2ef550dc3 update 3 vuotta sitten
app.js e2ef550dc3 update 3 vuotta sitten
augment.js e2ef550dc3 update 3 vuotta sitten
borrow.js e2ef550dc3 update 3 vuotta sitten
config.js e2ef550dc3 update 3 vuotta sitten
doclet.js e2ef550dc3 update 3 vuotta sitten
env.js e2ef550dc3 update 3 vuotta sitten
fs.js e2ef550dc3 update 3 vuotta sitten
name.js e2ef550dc3 update 3 vuotta sitten
package.js e2ef550dc3 update 3 vuotta sitten
path.js e2ef550dc3 update 3 vuotta sitten
plugins.js e2ef550dc3 update 3 vuotta sitten
readme.js e2ef550dc3 update 3 vuotta sitten
schema.js e2ef550dc3 update 3 vuotta sitten
tag.js e2ef550dc3 update 3 vuotta sitten
template.js e2ef550dc3 update 3 vuotta sitten
tutorial.js e2ef550dc3 update 3 vuotta sitten

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;