@@ -3277,6 +3277,44 @@ While, the `Buffer` object is available as a global, there are additional
3277
3277
` Buffer ` -related APIs that are available only via the ` buffer ` module
3278
3278
accessed using ` require('buffer') ` .
3279
3279
3280
+ ### ` buffer.atob(data) `
3281
+ <!-- YAML
3282
+ added: REPLACEME
3283
+ -->
3284
+
3285
+ * ` data ` {any} The Base64-encoded input string.
3286
+
3287
+ Decodes a string of Base64-encoded data into bytes, and encodes those bytes
3288
+ into a string using Latin-1 (ISO-8859-1).
3289
+
3290
+ The ` data ` may be any JavaScript-value that can be coerced into a string.
3291
+
3292
+ ** This function is only provided for compatibility with legacy web platform APIs
3293
+ and should never be used in new code, because they use strings to represent
3294
+ binary data and predate the introduction of typed arrays in JavaScript.
3295
+ For code running using Node.js APIs, converting between base64-encoded strings
3296
+ and binary data should be performed using ` Buffer.from(str, 'base64') ` and
3297
+ ` buf.toString('base64') ` .**
3298
+
3299
+ ### ` buffer.btoa(data) `
3300
+ <!-- YAML
3301
+ added: REPLACEME
3302
+ -->
3303
+
3304
+ * ` data ` {any} An ASCII (Latin1) string.
3305
+
3306
+ Decodes a string into bytes using Latin-1 (ISO-8859), and encodes those bytes
3307
+ into a string using Base64.
3308
+
3309
+ The ` data ` may be any JavaScript-value that can be coerced into a string.
3310
+
3311
+ ** This function is only provided for compatibility with legacy web platform APIs
3312
+ and should never be used in new code, because they use strings to represent
3313
+ binary data and predate the introduction of typed arrays in JavaScript.
3314
+ For code running using Node.js APIs, converting between base64-encoded strings
3315
+ and binary data should be performed using ` Buffer.from(str, 'base64') ` and
3316
+ ` buf.toString('base64') ` .**
3317
+
3280
3318
### ` buffer.INSPECT_MAX_BYTES `
3281
3319
<!-- YAML
3282
3320
added: v0.5.4
0 commit comments