@ncf/loader-cfg-md-table
v0.0.4
Published
const loadMarkdown = require("./loadMarkdown.js"); const util = require("util"); const fs = require("fs"); const readFile = util.promisify(fs.readFile);
Downloads
1
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, }; };