\begin{quote}
Get the \href{https://en.wikipedia.org/wiki/PATH_(variable)}{\texttt{ PATH}} environment variable key cross-\/platform \end{quote}
It\textquotesingle{}s usually {\ttfamily PATH}, but on Windows it can be any casing like {\ttfamily Path}...\hypertarget{md_sfcode_node_modules_path_key_readme_autotoc_md20293}{}\doxysection{Install}\label{md_sfcode_node_modules_path_key_readme_autotoc_md20293}

\begin{DoxyCode}{0}
\DoxyCodeLine{\$ npm install -\/-\/save path-\/key }

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

\begin{DoxyCode}{0}
\DoxyCodeLine{const pathKey = require('path-\/key');}
\DoxyCodeLine{}
\DoxyCodeLine{const key = pathKey();}
\DoxyCodeLine{//=> 'PATH'}
\DoxyCodeLine{}
\DoxyCodeLine{const PATH = process.env[key];}
\DoxyCodeLine{//=> '/usr/local/bin:/usr/bin:/bin' }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_path_key_readme_autotoc_md20295}{}\doxysection{API}\label{md_sfcode_node_modules_path_key_readme_autotoc_md20295}
\hypertarget{md_sfcode_node_modules_path_key_readme_autotoc_md20296}{}\doxysubsection{path\+Key(\mbox{[}options\mbox{]})}\label{md_sfcode_node_modules_path_key_readme_autotoc_md20296}
\hypertarget{md_sfcode_node_modules_path_key_readme_autotoc_md20297}{}\doxysubsubsection{options}\label{md_sfcode_node_modules_path_key_readme_autotoc_md20297}
\hypertarget{md_sfcode_node_modules_path_key_readme_autotoc_md20298}{}\doxyparagraph{env}\label{md_sfcode_node_modules_path_key_readme_autotoc_md20298}
Type\+: {\ttfamily Object}~\newline
 Default\+: \href{https://nodejs.org/api/process.html\#process_process_env}{\texttt{ {\ttfamily process.\+env}}}

Use a custom environment variables object.\hypertarget{md_sfcode_node_modules_path_key_readme_autotoc_md20299}{}\doxysubsubsection{platform}\label{md_sfcode_node_modules_path_key_readme_autotoc_md20299}
Type\+: {\ttfamily string}~\newline
 Default\+: \href{https://nodejs.org/api/process.html\#process_process_platform}{\texttt{ {\ttfamily process.\+platform}}}

Get the PATH key for a specific platform.\hypertarget{md_sfcode_node_modules_path_key_readme_autotoc_md20300}{}\doxysection{License}\label{md_sfcode_node_modules_path_key_readme_autotoc_md20300}
MIT © \href{https://sindresorhus.com}{\texttt{ Sindre Sorhus}} 