$\vert$ {\bfseries{atob}} $\vert$ \href{https://git.coolaj86.com/coolaj86/btoa.js}{\texttt{ btoa}} $\vert$ \href{https://git.coolaj86.com/coolaj86/unibabel.js}{\texttt{ unibabel.\+js}} $\vert$ Sponsored by \href{https://ppl.family}{\texttt{ ppl}}

Uses {\ttfamily Buffer} to emulate the exact functionality of the browser\textquotesingle{}s atob.

Note\+: Unicode may be handled incorrectly (like the browser).

It turns base64-\/encoded {\bfseries{a}}scii data back {\bfseries{to}} {\bfseries{b}}inary.


\begin{DoxyCode}{0}
\DoxyCodeLine{(function () \{}
\DoxyCodeLine{  "{}use strict"{};}
\DoxyCodeLine{}
\DoxyCodeLine{  var atob = require('atob');}
\DoxyCodeLine{  var b64 = "{}SGVsbG8sIFdvcmxkIQ=="{};}
\DoxyCodeLine{  var bin = atob(b64);}
\DoxyCodeLine{}
\DoxyCodeLine{  console.log(bin); // "{}Hello, World!"{}}
\DoxyCodeLine{\}()); }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_atob_README_autotoc_md3361}{}\doxysubsection{Need Unicode and Binary Support in the Browser?}\label{md_sfcode_node_modules_atob_README_autotoc_md3361}
Check out \href{https://git.coolaj86.com/coolaj86/unibabel.js}{\texttt{ unibabel.\+js}}\hypertarget{md_sfcode_node_modules_atob_README_autotoc_md3362}{}\doxysection{Changelog}\label{md_sfcode_node_modules_atob_README_autotoc_md3362}

\begin{DoxyItemize}
\item v2.\+1.\+0 address a few issues and PRs, update URLs
\item v2.\+0.\+0 provide browser version for ios web workers
\item v1.\+2.\+0 provide (empty) browser version
\item v1.\+1.\+3 add MIT license
\item v1.\+1.\+2 node only
\end{DoxyItemize}\hypertarget{md_sfcode_node_modules_atob_README_autotoc_md3363}{}\doxysection{LICENSE}\label{md_sfcode_node_modules_atob_README_autotoc_md3363}
Code copyright 2012-\/2018 AJ ONeal

Dual-\/licensed MIT and Apache-\/2.\+0

Docs copyright 2012-\/2018 AJ ONeal

Docs released under \href{https://git.coolaj86.com/coolaj86/atob.js/blob/master/LICENSE.DOCS}{\texttt{ Creative Commons}}. 