\begin{quote}
Check if the process is running inside \href{https://msdn.microsoft.com/commandline/wsl/about}{\texttt{ Windows Subsystem for Linux}} (Bash on Windows) \end{quote}
Can be useful if you need to work around unimplemented or buggy features in WSL. Supports both WSL 1 and WSL 2.\hypertarget{md_sfcode_node_modules_is_wsl_readme_autotoc_md13258}{}\doxysection{Install}\label{md_sfcode_node_modules_is_wsl_readme_autotoc_md13258}

\begin{DoxyCode}{0}
\DoxyCodeLine{\$ npm install is-\/wsl }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_is_wsl_readme_autotoc_md13259}{}\doxysection{Usage}\label{md_sfcode_node_modules_is_wsl_readme_autotoc_md13259}

\begin{DoxyCode}{0}
\DoxyCodeLine{const isWsl = require('is-\/wsl');}
\DoxyCodeLine{}
\DoxyCodeLine{// When running inside Windows Subsystem for Linux}
\DoxyCodeLine{console.log(isWsl);}
\DoxyCodeLine{//=> true }

\end{DoxyCode}


\DoxyHorRuler{0}


 {\bfseries{ \href{https://tidelift.com/subscription/pkg/npm-is-wsl?utm_source=npm-is-wsl&utm_medium=referral&utm_campaign=readme}{\texttt{ Get professional support for this package with a Tidelift subscription}} }} ~\newline
 \textsubscript{ Tidelift helps make open source sustainable for maintainers while giving companies~\newline
assurances about security, maintenance, and licensing for their dependencies. }  