@ncp/loader-cfg-md-table
v0.0.3
Published
const loadMarkdown = require("./loadMarkdown.js"); const util = require("util"); const fs = require("fs"); const readFile = util.promisify(fs.readFile);
Downloads
2
Readme
const loadMarkdown = require("./loadMarkdown.js"); const util = require("util"); const fs = require("fs"); const readFile = util.promisify(fs.readFile);
module.exports = async function loaderYAMLFactory(abspath, cfg) { const markdownData = await readFile(abspath, { encoding: "utf8", }).then((text) => loadMarkdown(text)); return { faas: () => markdownData, }; };