Native base64 utility methods

Mathias Bynens mathiasb at opera.com
Thu May 8 02:17:02 PDT 2014


On 5 May 2014, at 20:22, Andrea Giammarchi <andrea.giammarchi at gmail.com> wrote:

> @mathias didn't mean to change atob and btoa rather add two extra methods such encode/decode for strings (could land without problems in the String.prototype, IMO) with "less silly names" whatever definition of silly we have ^_^

Agreed. Moving `TextEncoder`/`TextDecoder` to ES would be nice (but it requires `ArrayBuffer` / `Uint8Array`). http://encoding.spec.whatwg.org/#api


More information about the es-discuss mailing list