@house-agency/brewtils
Version:
The Brewery Node.js Utilities (brewtils)
23 lines (21 loc) • 540 B
Markdown
exporter
======
::javascript
//Creates an exportable object for module.exports by
//parsing incoming arguments.
//Use like this:
exporter(
func1,
func2,
{
some_property: value
}
);
//Which will result in this:
{
func1: func1,
func2: func2,
some_property: value
}
//@param {i..function|object} exports Functions or objects for export
//@returns {object} Merged exportable object/