Skip to content

Commit

Permalink
[Squash] nits
Browse files Browse the repository at this point in the history
Co-authored-by: Anna Henningsen <anna@addaleax.net>
  • Loading branch information
jasnell and addaleax committed Mar 17, 2021
1 parent 2f13bde commit 802710c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions doc/api/buffer.md
Expand Up @@ -3286,18 +3286,20 @@ added: REPLACEME

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

Decodes a string of Base64-encoded data into ASCII (Latin1).
Decodes a string of Base64-encoded data into bytes, and encodes those bytes
into a string using Latin-1 (ISO-8859-1).

The `data` may be any JavaScript-value that can be coerced into a string.
The `data` may be any JavaScript value that can be coerced into a string.

### `buffer.btoa(data)`
<!-- YAML
added: REPLACEME
-->

* `data` {any} An ASCII (Latin1) string.
* `data` {any} A Latin-1 string.

Encodes a string of ASCII characters into a Base64-encoded string.
Decodes a string into bytes using Latin-1 (ISO-8859), and encodes those bytes
into a string using Base64.

The `data` may be any JavaScript-value that can be coerced into a string.

Expand Down

0 comments on commit 802710c

Please sign in to comment.