This package has been deprecated

Author message:

Please use @emdaer/plugin-import instead. Thanks!

@emdaer/plugin-node-package

2.0.3 • Public • Published

@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

Readme

Keywords

Package Sidebar

Install

npm i @emdaer/plugin-node-package

Homepage

emdaer.me/

Weekly Downloads

1

Version

2.0.3

License

MIT

Unpacked Size

16.2 kB

Total Files

11

Last publish

Collaborators

  • beautyhammer
  • emdaerbot
  • flipactual
  • infiniteluke