[Home](./index.md) > [@apextoaster/js-utils](./js-utils.md) > [encode](./js-utils.encode.md)
## encode() function
Concatenate then encode a list of buffers.
Signature:
```typescript
export declare function encode(chunks: Array, encoding: AllowedBufferEncoding): string;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| chunks | Array<Buffer> | |
| encoding | AllowedBufferEncoding | |
Returns:
string