\begin{quote}
Check if a URL is absolute \end{quote}
\hypertarget{md_sfcode_node_modules_webpack_dev_server_node_modules_is_absolute_url_readme_autotoc_md33501}{}\doxysection{Install}\label{md_sfcode_node_modules_webpack_dev_server_node_modules_is_absolute_url_readme_autotoc_md33501}

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

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

\begin{DoxyCode}{0}
\DoxyCodeLine{const isAbsoluteUrl = require('is-\/absolute-\/url');}
\DoxyCodeLine{}
\DoxyCodeLine{isAbsoluteUrl('https://sindresorhus.com/foo/bar');}
\DoxyCodeLine{//=> true}
\DoxyCodeLine{}
\DoxyCodeLine{isAbsoluteUrl('//sindresorhus.com');}
\DoxyCodeLine{//=> false}
\DoxyCodeLine{}
\DoxyCodeLine{isAbsoluteUrl('foo/bar');}
\DoxyCodeLine{//=> false }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_webpack_dev_server_node_modules_is_absolute_url_readme_autotoc_md33503}{}\doxysection{Related}\label{md_sfcode_node_modules_webpack_dev_server_node_modules_is_absolute_url_readme_autotoc_md33503}
See \href{https://github.com/sindresorhus/is-relative-url}{\texttt{ is-\/relative-\/url}} for the inverse.

\DoxyHorRuler{0}


 {\bfseries{ \href{https://tidelift.com/subscription/pkg/npm-is-absolute-url?utm_source=npm-is-absolute-url&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. }  