{\ttfamily base64-\/js} does basic base64 encoding/decoding in pure JS.

\href{http://travis-ci.org/beatgammit/base64-js}{\texttt{ }}

Many browsers already have base64 encoding/decoding functionality, but it is for text data, not all-\/purpose binary data.

Sometimes encoding/decoding binary data in the browser is useful, and that is what this module does.\hypertarget{md_sfcode_node_modules_base64_js_README_autotoc_md3886}{}\doxysection{install}\label{md_sfcode_node_modules_base64_js_README_autotoc_md3886}
With \href{https://npmjs.org}{\texttt{ npm}} do\+:

{\ttfamily npm install base64-\/js} and `var base64js = require(\textquotesingle{}base64-\/js')\`{}

For use in web browsers do\+:

{\ttfamily $<$script src=\char`\"{}base64js.\+min.\+js\char`\"{}$>$$<$/script$>$}\hypertarget{md_sfcode_node_modules_base64_js_README_autotoc_md3887}{}\doxysection{methods}\label{md_sfcode_node_modules_base64_js_README_autotoc_md3887}
{\ttfamily base64js} has three exposed functions, {\ttfamily byte\+Length}, {\ttfamily to\+Byte\+Array} and {\ttfamily from\+Byte\+Array}, which both take a single argument.


\begin{DoxyItemize}
\item {\ttfamily byte\+Length} -\/ Takes a base64 string and returns length of byte array
\item {\ttfamily to\+Byte\+Array} -\/ Takes a base64 string and returns a byte array
\item {\ttfamily from\+Byte\+Array} -\/ Takes a byte array and returns a base64 string
\end{DoxyItemize}\hypertarget{md_sfcode_node_modules_base64_js_README_autotoc_md3888}{}\doxysection{license}\label{md_sfcode_node_modules_base64_js_README_autotoc_md3888}
MIT 