\hypertarget{md_sfcode_node_modules_is_buffer_README_autotoc_md12973}{}\doxysubsubsection{Determine if an object is a $<$a href=\char`\"{}http\+://nodejs.\+org/api/buffer.\+html\char`\"{}$>$$<$tt$>$\+Buffer$<$/tt$>$$<$/a$>$ (including the $<$a href=\char`\"{}https\+://github.\+com/feross/buffer\char`\"{}$>$browserify Buffer$<$/a$>$)}\label{md_sfcode_node_modules_is_buffer_README_autotoc_md12973}
\href{https://saucelabs.com/u/is-buffer}{\texttt{ }}\hypertarget{md_sfcode_node_modules_is_buffer_README_autotoc_md12974}{}\doxysection{Why not use $<$tt$>$\+Buffer.\+is\+Buffer$<$/tt$>$?}\label{md_sfcode_node_modules_is_buffer_README_autotoc_md12974}
This module lets you check if an object is a {\ttfamily Buffer} without using {\ttfamily Buffer.\+is\+Buffer} (which includes the whole \href{https://github.com/feross/buffer}{\texttt{ buffer}} module in \href{http://browserify.org/}{\texttt{ browserify}}).

It\textquotesingle{}s future-\/proof and works in node too!\hypertarget{md_sfcode_node_modules_is_buffer_README_autotoc_md12975}{}\doxysection{install}\label{md_sfcode_node_modules_is_buffer_README_autotoc_md12975}

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

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_is_buffer_README_autotoc_md12976}{}\doxysection{usage}\label{md_sfcode_node_modules_is_buffer_README_autotoc_md12976}

\begin{DoxyCode}{0}
\DoxyCodeLine{var isBuffer = require('is-\/buffer')}
\DoxyCodeLine{}
\DoxyCodeLine{isBuffer(new Buffer(4)) // true}
\DoxyCodeLine{}
\DoxyCodeLine{isBuffer(undefined) // false}
\DoxyCodeLine{isBuffer(null) // false}
\DoxyCodeLine{isBuffer('') // false}
\DoxyCodeLine{isBuffer(true) // false}
\DoxyCodeLine{isBuffer(false) // false}
\DoxyCodeLine{isBuffer(0) // false}
\DoxyCodeLine{isBuffer(1) // false}
\DoxyCodeLine{isBuffer(1.0) // false}
\DoxyCodeLine{isBuffer('string') // false}
\DoxyCodeLine{isBuffer(\{\}) // false}
\DoxyCodeLine{isBuffer(function foo () \{\}) // false }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_is_buffer_README_autotoc_md12977}{}\doxysection{license}\label{md_sfcode_node_modules_is_buffer_README_autotoc_md12977}
MIT. Copyright (C) \href{http://feross.org}{\texttt{ Feross Aboukhadijeh}}. 