Aktueller Stand
This commit is contained in:
28
backend/node_modules/avvio/README.md
generated
vendored
28
backend/node_modules/avvio/README.md
generated
vendored
@@ -83,7 +83,6 @@ async function third (instance, opts) {
|
||||
* <a href="#override"><code>instance.<b>override()</b></code></a>
|
||||
* <a href="#onClose"><code>instance.<b>onClose()</b></code></a>
|
||||
* <a href="#close"><code>instance.<b>close()</b></code></a>
|
||||
* <a href="#express"><code>avvio.<b>express()</b></code></a>
|
||||
* <a href="#toJSON"><code>avvio.<b>toJSON()</b></code></a>
|
||||
* <a href="#prettyPrint"><code>avvio.<b>prettyPrint()</b></code></a>
|
||||
|
||||
@@ -152,8 +151,6 @@ Loads one or more functions asynchronously.
|
||||
|
||||
The function **must** have the signature: `instance, options, done`
|
||||
|
||||
However, if the function returns a `Promise` (i.e. `async`), the above function signature is not required.
|
||||
|
||||
Plugin example:
|
||||
```js
|
||||
function plugin (server, opts, done) {
|
||||
@@ -162,8 +159,11 @@ function plugin (server, opts, done) {
|
||||
|
||||
app.use(plugin)
|
||||
```
|
||||
`done` should be called only once, when your plugin is ready to go. Additional
|
||||
calls to `done` are ignored.
|
||||
`done` should be called only once, when your plugin is ready to go. Additional calls to `done` are ignored.
|
||||
|
||||
If your plugin is ready to go immediately after the function is evaluated, you can omit `done` from the signature.
|
||||
|
||||
If the function returns a `Promise` (i.e. `async`), the above function signature is not required.
|
||||
|
||||
`use` returns a thenable wrapped instance on which `use` is called, to support a chainable API that can also be awaited.
|
||||
|
||||
@@ -444,24 +444,6 @@ also start the boot sequence.
|
||||
Start the boot sequence, if it was not started yet.
|
||||
Returns the `app` instance.
|
||||
|
||||
-------------------------------------------------------
|
||||
<a name="express"></a>
|
||||
|
||||
### avvio.express(app)
|
||||
|
||||
Same as:
|
||||
|
||||
```js
|
||||
const app = express()
|
||||
const avvio = require('avvio')
|
||||
|
||||
avvio(app, {
|
||||
expose: {
|
||||
use: 'load'
|
||||
}
|
||||
})
|
||||
```
|
||||
|
||||
-------------------------------------------------------
|
||||
<a name="override"></a>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user