1
0
Fork 0
js-utils/docs/api/js-utils.encode.md

26 lines
622 B
Markdown

<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [@apextoaster/js-utils](./js-utils.md) &gt; [encode](./js-utils.encode.md)
## encode() function
Concatenate then encode a list of buffers.
<b>Signature:</b>
```typescript
export declare function encode(chunks: Array<Buffer>, encoding: AllowedBufferEncoding): string;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| chunks | Array&lt;Buffer&gt; | |
| encoding | [AllowedBufferEncoding](./js-utils.allowedbufferencoding.md) | |
<b>Returns:</b>
string