{\itshape unicode-\/match-\/property-\/value-\/ecmascript} matches a given Unicode property value or \href{https://github.com/mathiasbynens/unicode-property-value-aliases}{\texttt{ property value alias}} to its canonical property value without applying \href{https://github.com/mathiasbynens/unicode-loose-match}{\texttt{ loose matching}}, per the algorithm used for \href{https://github.com/tc39/proposal-regexp-unicode-property-escapes}{\texttt{ Reg\+Exp Unicode property escapes in ECMAScript}}. Consider it a strict alternative to loose matching.\hypertarget{md_sfcode_node_modules_unicode_match_property_value_ecmascript_README_autotoc_md31280}{}\doxysection{Installation}\label{md_sfcode_node_modules_unicode_match_property_value_ecmascript_README_autotoc_md31280}
To use {\itshape unicode-\/match-\/property-\/value-\/ecmascript} programmatically, install it as a dependency via \href{https://www.npmjs.com/}{\texttt{ npm}}\+:


\begin{DoxyCode}{0}
\DoxyCodeLine{\$ npm install unicode-\/match-\/property-\/value-\/ecmascript }

\end{DoxyCode}


Then, {\ttfamily require} it\+:


\begin{DoxyCode}{0}
\DoxyCodeLine{const matchPropertyValue = require('unicode-\/match-\/property-\/value-\/ecmascript'); }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_unicode_match_property_value_ecmascript_README_autotoc_md31281}{}\doxysection{API}\label{md_sfcode_node_modules_unicode_match_property_value_ecmascript_README_autotoc_md31281}
This module exports a single function named {\ttfamily match\+Property\+Value}.\hypertarget{md_sfcode_node_modules_unicode_match_property_value_ecmascript_README_autotoc_md31282}{}\doxysubsection{$<$tt$>$match\+Property\+Value(property, value)$<$/tt$>$}\label{md_sfcode_node_modules_unicode_match_property_value_ecmascript_README_autotoc_md31282}
This function takes a string {\ttfamily property} that is a canonical/unaliased Unicode property name, and a string {\ttfamily value}. It attemps to match {\ttfamily value} to a canonical Unicode property value for the given property. If there’s a match, it returns the canonical property value. Otherwise, it throws an exception.


\begin{DoxyCode}{0}
\DoxyCodeLine{// Find the canonical property value:}
\DoxyCodeLine{matchPropertyValue('Script\_Extensions', 'Aghb')}
\DoxyCodeLine{// → 'Caucasian\_Albanian'}
\DoxyCodeLine{}
\DoxyCodeLine{matchPropertyValue('Script\_Extensions', 'Caucasian\_Albanian')}
\DoxyCodeLine{// → 'Caucasian\_Albanian'}
\DoxyCodeLine{}
\DoxyCodeLine{matchPropertyValue('script\_extensions', 'Caucasian\_Albanian') // Note: incorrect casing.}
\DoxyCodeLine{// → throws}
\DoxyCodeLine{}
\DoxyCodeLine{matchPropertyValue('Script\_Extensions', 'caucasian\_albanian') // Note: incorrect casing.}
\DoxyCodeLine{// → throws }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_unicode_match_property_value_ecmascript_README_autotoc_md31283}{}\doxysection{Author}\label{md_sfcode_node_modules_unicode_match_property_value_ecmascript_README_autotoc_md31283}
\tabulinesep=1mm
\begin{longtabu}spread 0pt [c]{*{1}{|X[-1]}|}
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ \href{https://twitter.com/mathias}{\texttt{ }}    }\\\cline{1-1}
\endfirsthead
\hline
\endfoot
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ \href{https://twitter.com/mathias}{\texttt{ }}    }\\\cline{1-1}
\endhead
\href{https://mathiasbynens.be/}{\texttt{ Mathias Bynens}}   \\\cline{1-1}
\end{longtabu}
\hypertarget{md_sfcode_node_modules_unicode_match_property_value_ecmascript_README_autotoc_md31284}{}\doxysection{License}\label{md_sfcode_node_modules_unicode_match_property_value_ecmascript_README_autotoc_md31284}
{\itshape unicode-\/match-\/property-\/value-\/ecmascript} is available under the \href{https://mths.be/mit}{\texttt{ MIT}} license. 