remi-expose
A remi extension that adds the expose method to the target
Installation
npm i remi-expose
Usage
Registering the extension
const remi = const remiExpose = const app = {}const registrator = registrator
Once the remi-expose extension is registered, the remi plugins can expose values.
app.expose(key, value)
Used within a plugin to expose a property via app.plugins[name] where:
key
- the key assigned (server.plugins[name][key]
).value
- the value assigned.
exports { app }
server.expose(obj)
Merges a shallow copy of an object into to the existing content of server.plugins[name]
where:
obj
- the object merged into the exposed properties container.
exports { app }
License
MIT © Zoltan Kochan