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

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;