diff --git a/doc/api/buffer.md b/doc/api/buffer.md index ab357fe12486f1d..3826ee89bdcf3cb 100644 --- a/doc/api/buffer.md +++ b/doc/api/buffer.md @@ -3279,6 +3279,28 @@ While, the `Buffer` object is available as a global, there are additional `Buffer`-related APIs that are available only via the `buffer` module accessed using `require('buffer')`. +### `buffer.atob(data)` + + +* `data` {any} The Base64-encoded input string. + +Decodes a string of Base64-encoded data into ASCII (Latin1). + +The `data` may be any JavaScript-value that can be coerced into a string. + +### `buffer.btoa(data)` + + +* `data` {any} An ASCII (Latin1) string. + +Encodes a string of ASCII characters into a Base64-encoded string. + +The `data` may be any JavaScript-value that can be coerced into a string. + ### `buffer.INSPECT_MAX_BYTES`