[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: string): string;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| chunks | Array<Buffer>
| |
| encoding | string
| |
Returns:
`string`