26 lines
622 B
Markdown
26 lines
622 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
[Home](./index.md) > [@apextoaster/js-utils](./js-utils.md) > [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<Buffer> | |
|
|
| encoding | [AllowedBufferEncoding](./js-utils.allowedbufferencoding.md) | |
|
|
|
|
<b>Returns:</b>
|
|
|
|
string
|
|
|