Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

std/node/buffer.ts>Buffer#toString

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
method Buffer.prototype.toString
import { Buffer } from "https://deno.land/std@0.92.0/node/buffer.ts";

Decodes buf to a string according to the specified character encoding in encoding. start and end may be passed to decode only a subset of buf.

Parameters

optional
encoding = [UNSUPPORTED]
optional
start = [UNSUPPORTED]
optional
end = [UNSUPPORTED]

Returns

string