\href{https://travis-ci.org/SamVerschueren/decode-uri-component}{\texttt{ }} \href{https://coveralls.io/github/SamVerschueren/decode-uri-component?branch=master}{\texttt{ }}

\begin{quote}
A better \href{https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/decodeURIComponent}{\texttt{ decode\+URIComponent}} \end{quote}
\hypertarget{md_sfcode_node_modules_decode_uri_component_readme_autotoc_md7878}{}\doxysection{Why?}\label{md_sfcode_node_modules_decode_uri_component_readme_autotoc_md7878}

\begin{DoxyItemize}
\item Decodes {\ttfamily +} to a space.
\item Converts the \href{https://en.wikipedia.org/wiki/Byte_order_mark}{\texttt{ BOM}} to a \href{https://en.wikipedia.org/wiki/Specials_(Unicode_block)\#Replacement_character}{\texttt{ replacement character}} {\ttfamily {\ucr}}.
\item Does not throw with invalid encoded input.
\item Decodes as much of the string as possible.
\end{DoxyItemize}\hypertarget{md_sfcode_node_modules_decode_uri_component_readme_autotoc_md7879}{}\doxysection{Install}\label{md_sfcode_node_modules_decode_uri_component_readme_autotoc_md7879}

\begin{DoxyCode}{0}
\DoxyCodeLine{\$ npm install -\/-\/save decode-\/uri-\/component }

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

\begin{DoxyCode}{0}
\DoxyCodeLine{const decodeUriComponent = require('decode-\/uri-\/component');}
\DoxyCodeLine{}
\DoxyCodeLine{decodeUriComponent('\%25');}
\DoxyCodeLine{//=> '\%'}
\DoxyCodeLine{}
\DoxyCodeLine{decodeUriComponent('\%');}
\DoxyCodeLine{//=> '\%'}
\DoxyCodeLine{}
\DoxyCodeLine{decodeUriComponent('st\%C3\%A5le');}
\DoxyCodeLine{//=> 'ståle'}
\DoxyCodeLine{}
\DoxyCodeLine{decodeUriComponent('\%st\%C3\%A5le\%');}
\DoxyCodeLine{//=> '\%ståle\%'}
\DoxyCodeLine{}
\DoxyCodeLine{decodeUriComponent('\%\%7Bst\%C3\%A5le\%7D\%');}
\DoxyCodeLine{//=> '\%\{ståle\}\%'}
\DoxyCodeLine{}
\DoxyCodeLine{decodeUriComponent('\%7B\%ab\%\%7C\%de\%\%7D');}
\DoxyCodeLine{//=> '\{\%ab\%|\%de\%\}'}
\DoxyCodeLine{}
\DoxyCodeLine{decodeUriComponent('\%FE\%FF');}
\DoxyCodeLine{//=> '\(\backslash\)uFFFD\(\backslash\)uFFFD'}
\DoxyCodeLine{}
\DoxyCodeLine{decodeUriComponent('\%C2');}
\DoxyCodeLine{//=> '\(\backslash\)uFFFD'}
\DoxyCodeLine{}
\DoxyCodeLine{decodeUriComponent('\%C2\%B5');}
\DoxyCodeLine{//=> 'µ' }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_decode_uri_component_readme_autotoc_md7881}{}\doxysection{API}\label{md_sfcode_node_modules_decode_uri_component_readme_autotoc_md7881}
\hypertarget{md_sfcode_node_modules_decode_uri_component_readme_autotoc_md7882}{}\doxysubsection{decode\+Uri\+Component(encoded\+URI)}\label{md_sfcode_node_modules_decode_uri_component_readme_autotoc_md7882}
\hypertarget{md_sfcode_node_modules_decode_uri_component_readme_autotoc_md7883}{}\doxysubsubsection{encoded\+URI}\label{md_sfcode_node_modules_decode_uri_component_readme_autotoc_md7883}
Type\+: {\ttfamily string}

An encoded component of a Uniform Resource Identifier.\hypertarget{md_sfcode_node_modules_decode_uri_component_readme_autotoc_md7884}{}\doxysection{License}\label{md_sfcode_node_modules_decode_uri_component_readme_autotoc_md7884}
MIT © \href{https://github.com/SamVerschueren}{\texttt{ Sam Verschueren}} 