Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions doc/api/buffer.md
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,8 @@ added:
- v20.16.0
-->

* Returns: {Promise}

The `blob.bytes()` method returns the byte of the `Blob` object as a `Promise<Uint8Array>`.

```js
Expand Down Expand Up @@ -566,6 +568,7 @@ added:
* `start` {number} The starting index.
* `end` {number} The ending index.
* `type` {string} The content-type for the new `Blob`
* Returns: {Blob}

Creates and returns a new `Blob` containing a subset of this `Blob` objects
data. The original `Blob` is not altered.
Expand Down Expand Up @@ -5278,6 +5281,7 @@ added:
> Stability: 3 - Legacy. Use `Buffer.from(data, 'base64')` instead.

* `data` {any} The Base64-encoded input string.
* Returns: {string}

Decodes a string of Base64-encoded data into bytes, and encodes those bytes
into a string using Latin-1 (ISO-8859-1).
Expand Down Expand Up @@ -5308,6 +5312,7 @@ added:
> Stability: 3 - Legacy. Use `buf.toString('base64')` instead.

* `data` {any} An ASCII (Latin1) string.
* Returns: {string}

Decodes a string into bytes using Latin-1 (ISO-8859), and encodes those bytes
into a string using Base64.
Expand Down
Loading