\begin{quote}
Check if a file path is a binary file \end{quote}
\hypertarget{md_sfcode_node_modules_is_binary_path_readme_autotoc_md12968}{}\doxysection{Install}\label{md_sfcode_node_modules_is_binary_path_readme_autotoc_md12968}

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

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

\begin{DoxyCode}{0}
\DoxyCodeLine{const isBinaryPath = require('is-\/binary-\/path');}
\DoxyCodeLine{}
\DoxyCodeLine{isBinaryPath('source/unicorn.png');}
\DoxyCodeLine{//=> true}
\DoxyCodeLine{}
\DoxyCodeLine{isBinaryPath('source/unicorn.txt');}
\DoxyCodeLine{//=> false }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_is_binary_path_readme_autotoc_md12970}{}\doxysection{Related}\label{md_sfcode_node_modules_is_binary_path_readme_autotoc_md12970}

\begin{DoxyItemize}
\item \href{https://github.com/sindresorhus/binary-extensions}{\texttt{ binary-\/extensions}} -\/ List of binary file extensions
\item \href{https://github.com/sindresorhus/is-text-path}{\texttt{ is-\/text-\/path}} -\/ Check if a filepath is a text file
\end{DoxyItemize}\hypertarget{md_sfcode_node_modules_is_binary_path_readme_autotoc_md12971}{}\doxysection{License}\label{md_sfcode_node_modules_is_binary_path_readme_autotoc_md12971}
MIT © \href{https://sindresorhus.com}{\texttt{ Sindre Sorhus}}, \href{https://paulmillr.com}{\texttt{ Paul Miller}} 