diff --git a/.eslintrc.js b/.eslintrc.js index 7574e1b4b6c7f7..28a31d050a6de1 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -329,5 +329,7 @@ module.exports = { TextDecoder: 'readable', queueMicrotask: 'readable', globalThis: 'readable', + btoa: 'readable', + atob: 'readable', }, }; diff --git a/doc/api/globals.md b/doc/api/globals.md index 6f8c9d3b398c11..f3cb382460dd9d 100644 --- a/doc/api/globals.md +++ b/doc/api/globals.md @@ -146,6 +146,20 @@ This variable may appear to be global but is not. See [`__dirname`][]. This variable may appear to be global but is not. See [`__filename`][]. +## `atob(data)` + + +Global alias for [`buffer.atob()`][]. + +## `btoa(data)` + + +Global alias for [`buffer.btoa()`][]. + ## `clearImmediate(immediateObject)`