Skip to main content

getString

@h4ad/serverless-adapter > getString

(function) getString

Get the data from a buffer, string, or Uint8Array

Signature:

export declare function getString(data: Buffer | string | unknown): string;

Parameters

ParameterTypeDescription
dataBuffer | string | unknownThe data that was written inside the stream

Returns:

string