UNPKG

@loopback/docs

Version:

Documentation files rendered at [https://loopback.io](https://loopback.io)

37 lines (24 loc) 1.06 kB
--- lang: en title: 'API docs: express.buildname' keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI sidebar: lb4_sidebar editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/express permalink: /doc/en/lb4/apidocs.express.buildname.html --- <!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@loopback/express](./express.md) &gt; [buildName](./express.buildname.md) ## buildName() function Build a name for the middleware <b>Signature:</b> ```typescript export declare function buildName<CFG>(middlewareFactory: ExpressMiddlewareFactory<CFG>, providedName?: string, suffix?: string): string | undefined; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | middlewareFactory | [ExpressMiddlewareFactory](./express.expressmiddlewarefactory.md)<!-- -->&lt;CFG&gt; | Express middleware factory function | | providedName | string | Provided name | | suffix | string | Suffix | <b>Returns:</b> string \| undefined