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

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;