@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
37 lines (24 loc) • 1.06 kB
Markdown
---
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) > [@loopback/express](./express.md) > [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)<!-- --><CFG> | Express middleware factory function |
| providedName | string | Provided name |
| suffix | string | Suffix |
<b>Returns:</b>
string \| undefined