\begin{quote}
Compile E\+S2015 unicode string and number literals to E\+S5 \end{quote}


\subsection*{Example}

{\bfseries In}


\begin{DoxyCode}
var b = 0b11; // binary integer literal
var o = 0o7; // octal integer literal
const u = 'Hello\(\backslash\)u\{000A\}\(\backslash\)u\{0009\}!'; // unicode string literals, newline and tab
\end{DoxyCode}


{\bfseries Out}


\begin{DoxyCode}
var b = 3; // binary integer literal
var o = 7; // octal integer literal
const u = 'Hello\(\backslash\)n\(\backslash\)t!'; // unicode string literals, newline and tab
\end{DoxyCode}


\subsection*{Installation}


\begin{DoxyCode}
npm install --save-dev babel-plugin-transform-es2015-literals
\end{DoxyCode}


\subsection*{Usage}

\subsubsection*{Via {\ttfamily .babelrc} (Recommended)}

$\ast$$\ast$.babelrc$\ast$$\ast$


\begin{DoxyCode}
\{
  "plugins": ["transform-es2015-literals"]
\}
\end{DoxyCode}


\subsubsection*{Via C\+LI}


\begin{DoxyCode}
babel --plugins transform-es2015-literals script.js
\end{DoxyCode}


\subsubsection*{Via Node A\+PI}


\begin{DoxyCode}
require("babel-core").transform("code", \{
  plugins: ["transform-es2015-literals"]
\});
\end{DoxyCode}
 