Transform async/generator functions with \href{https://github.com/facebook/regenerator}{\texttt{ regenerator}}\hypertarget{md_sfcode_node_modules_regenerator_transform_README_autotoc_md24031}{}\doxysection{Installation}\label{md_sfcode_node_modules_regenerator_transform_README_autotoc_md24031}

\begin{DoxyCode}{0}
\DoxyCodeLine{\$ npm install regenerator-\/transform }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_regenerator_transform_README_autotoc_md24032}{}\doxysection{Usage}\label{md_sfcode_node_modules_regenerator_transform_README_autotoc_md24032}
\hypertarget{md_sfcode_node_modules_regenerator_transform_README_autotoc_md24033}{}\doxysubsection{Via $<$tt$>$.\+babelrc$<$/tt$>$ (\+Recommended)}\label{md_sfcode_node_modules_regenerator_transform_README_autotoc_md24033}
$\ast$$\ast$.babelrc$\ast$$\ast$


\begin{DoxyCode}{0}
\DoxyCodeLine{// without options}
\DoxyCodeLine{\{}
\DoxyCodeLine{  "{}plugins"{}: ["{}regenerator-\/transform"{}]}
\DoxyCodeLine{\}}
\DoxyCodeLine{// with options}
\DoxyCodeLine{\{}
\DoxyCodeLine{  "{}plugins"{}: [}
\DoxyCodeLine{    ["{}regenerator-\/transform"{}, \{}
\DoxyCodeLine{      asyncGenerators: false, // true by default}
\DoxyCodeLine{      generators: false, // true by default}
\DoxyCodeLine{      async: false // true by default}
\DoxyCodeLine{    \}]}
\DoxyCodeLine{  ]}
\DoxyCodeLine{\} }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_regenerator_transform_README_autotoc_md24034}{}\doxysubsection{Via CLI}\label{md_sfcode_node_modules_regenerator_transform_README_autotoc_md24034}

\begin{DoxyCode}{0}
\DoxyCodeLine{\$ babel -\/-\/plugins regenerator-\/transform script.js }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_regenerator_transform_README_autotoc_md24035}{}\doxysubsection{Via Node API}\label{md_sfcode_node_modules_regenerator_transform_README_autotoc_md24035}

\begin{DoxyCode}{0}
\DoxyCodeLine{require("{}@babel/core"{}).transformSync("{}code"{}, \{}
\DoxyCodeLine{  plugins: ["{}regenerator-\/transform"{}]}
\DoxyCodeLine{\}); }

\end{DoxyCode}
 