@emdaer/plugin-node-package
An emdaer plugin that requires a file and optionally executes it with provided arguments.
nodePackagePlugin
Use the export of a given package as the content if it’s a string,
and execute it with provided args if it’s a function
Parameters
options any
options.path string? The filename to require.
options.args array? An array of args to pass to the exported function at the required path.
options.runEmdaer boolean? Whether or not to run emdaer on the content.
Returns Promise<string> The contents at the path or the execution results