Skip to content

Commit

Permalink
[doc] Disambiguate the title
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarred-Sumner committed Apr 19, 2024
1 parent 2ce8395 commit c4d6914
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/guides/streams/node-readable-to-arraybuffer.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: Convert a Node.js Readable stream to an ArrayBuffer
name: Convert a Node.js Readable to an ArrayBuffer
---

To convert a Node.js `Readable` stream to an `ArrayBuffer` in Bun, you can create a new `Response` object with the stream as the body, then use `arrayBuffer()` to read the stream into an `ArrayBuffer`.
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/streams/node-readable-to-blob.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: Convert a Node.js Readable stream to a Blob
name: Convert a Node.js Readable to a Blob
---

To convert a Node.js `Readable` stream to a [`Blob`](https://developer.mozilla.org/en-US/docs/Web/API/Blob) in Bun, you can create a new [`Response`](https://developer.mozilla.org/en-US/docs/Web/API/Response) object with the stream as the body, then use [`response.blob()`](https://developer.mozilla.org/en-US/docs/Web/API/Response/blob) to read the stream into a [`Blob`](https://developer.mozilla.org/en-US/docs/Web/API/Blob).
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/streams/node-readable-to-json.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: Convert a Node.js Readable stream to JSON
name: Convert a Node.js Readable to JSON
---

To convert a Node.js `Readable` stream to a JSON object in Bun, you can create a new [`Response`](https://developer.mozilla.org/en-US/docs/Web/API/Response) object with the stream as the body, then use [`response.json()`](https://developer.mozilla.org/en-US/docs/Web/API/Response/json) to read the stream into a JSON object.
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/streams/node-readable-to-string.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: Convert a Node.js Readable stream to a string
name: Convert a Node.js Readable to a string
---

To convert a Node.js `Readable` stream to a string in Bun, you can create a new [`Response`](https://developer.mozilla.org/en-US/docs/Web/API/Response) object with the stream as the body, then use [`response.text()`](https://developer.mozilla.org/en-US/docs/Web/API/Response/text) to read the stream into a string.
Expand Down

0 comments on commit c4d6914

Please sign in to comment.