aboutsummaryrefslogtreecommitdiff
path: root/examples/next/next.config.js
diff options
context:
space:
mode:
authorGravatar thislooksfun <tlf@thislooks.fun> 2022-07-16 17:23:18 -0500
committerGravatar GitHub <noreply@github.com> 2022-07-16 15:23:18 -0700
commite9f376825c8eac7ed8dcf7e896c77bbe63389821 (patch)
tree8445e956b50cf4c579ee4409c3c184bee7709be3 /examples/next/next.config.js
parent3c0f18f704fac1e27a0bc5fe82c8e084e411acb3 (diff)
downloadbun-e9f376825c8eac7ed8dcf7e896c77bbe63389821.tar.gz
bun-e9f376825c8eac7ed8dcf7e896c77bbe63389821.tar.zst
bun-e9f376825c8eac7ed8dcf7e896c77bbe63389821.zip
docs: fix documentation of `atob` and `btoa` (#748)
These function are confusingly named. `btoa` converts "Binary" to Ascii by encoding the input using base64. `atob` reverses that process by base64 decoding the Ascii input into a "Binary" output. The names come from the Unix utilities with the same names, which "converts a binary file to ascii for transmission over a telephone line" (https://www.unix.com/man-page/minix/1/btoa/) See: - https://developer.mozilla.org/en-US/docs/Web/API/atob - https://developer.mozilla.org/en-US/docs/Web/API/btoa - https://html.spec.whatwg.org/multipage/webappapis.html#dom-btoa-dev Note: the actual implementation of `btoa` and `atob` are correct, but the docs were backwards.
Diffstat (limited to 'examples/next/next.config.js')
0 files changed, 0 insertions, 0 deletions