@ncf/loader-cfg-md-table

0.0.4 • Public • Published

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, }; };

Readme

Keywords

none

Package Sidebar

Install

npm i @ncf/loader-cfg-md-table

Weekly Downloads

0

Version

0.0.4

License

ISC

Unpacked Size

1.99 kB

Total Files

4

Last publish

Collaborators

  • kaven276