\begin{quote}
Strip the \href{https://en.wikipedia.org/wiki/End-of-file}{\texttt{ End-\/\+Of-\/\+File}} (EOF) character from a string/buffer \end{quote}
\hypertarget{md_sfcode_node_modules_strip_eof_readme_autotoc_md29141}{}\doxysection{Install}\label{md_sfcode_node_modules_strip_eof_readme_autotoc_md29141}

\begin{DoxyCode}{0}
\DoxyCodeLine{\$ npm install -\/-\/save strip-\/eof }

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

\begin{DoxyCode}{0}
\DoxyCodeLine{const stripEof = require('strip-\/eof');}
\DoxyCodeLine{}
\DoxyCodeLine{stripEof('foo\(\backslash\)nbar\(\backslash\)n\(\backslash\)n');}
\DoxyCodeLine{//=> 'foo\(\backslash\)nbar\(\backslash\)n'}
\DoxyCodeLine{}
\DoxyCodeLine{stripEof(new Buffer('foo\(\backslash\)nbar\(\backslash\)n\(\backslash\)n')).toString();}
\DoxyCodeLine{//=> 'foo\(\backslash\)nbar\(\backslash\)n' }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_strip_eof_readme_autotoc_md29143}{}\doxysection{License}\label{md_sfcode_node_modules_strip_eof_readme_autotoc_md29143}
MIT © \href{http://sindresorhus.com}{\texttt{ Sindre Sorhus}} 