@@ -3112,6 +3112,44 @@ While, the `Buffer` object is available as a global, there are additional
3112
3112
` Buffer ` -related APIs that are available only via the ` buffer ` module
3113
3113
accessed using ` require('buffer') ` .
3114
3114
3115
+ ### ` buffer.atob(data) `
3116
+ <!-- YAML
3117
+ added: REPLACEME
3118
+ -->
3119
+
3120
+ * ` data ` {any} The Base64-encoded input string.
3121
+
3122
+ Decodes a string of Base64-encoded data into bytes, and encodes those bytes
3123
+ into a string using Latin-1 (ISO-8859-1).
3124
+
3125
+ The ` data ` may be any JavaScript-value that can be coerced into a string.
3126
+
3127
+ ** This function is only provided for compatibility with legacy web platform APIs
3128
+ and should never be used in new code, because they use strings to represent
3129
+ binary data and predate the introduction of typed arrays in JavaScript.
3130
+ For code running using Node.js APIs, converting between base64-encoded strings
3131
+ and binary data should be performed using ` Buffer.from(str, 'base64') ` and
3132
+ ` buf.toString('base64') ` .**
3133
+
3134
+ ### ` buffer.btoa(data) `
3135
+ <!-- YAML
3136
+ added: REPLACEME
3137
+ -->
3138
+
3139
+ * ` data ` {any} An ASCII (Latin1) string.
3140
+
3141
+ Decodes a string into bytes using Latin-1 (ISO-8859), and encodes those bytes
3142
+ into a string using Base64.
3143
+
3144
+ The ` data ` may be any JavaScript-value that can be coerced into a string.
3145
+
3146
+ ** This function is only provided for compatibility with legacy web platform APIs
3147
+ and should never be used in new code, because they use strings to represent
3148
+ binary data and predate the introduction of typed arrays in JavaScript.
3149
+ For code running using Node.js APIs, converting between base64-encoded strings
3150
+ and binary data should be performed using ` Buffer.from(str, 'base64') ` and
3151
+ ` buf.toString('base64') ` .**
3152
+
3115
3153
### ` buffer.INSPECT_MAX_BYTES `
3116
3154
<!-- YAML
3117
3155
added: v0.5.4
0 commit comments