
\begin{DoxyCode}{0}
\DoxyCodeLine{var correct = require('spdx-\/correct')}
\DoxyCodeLine{var assert = require('assert')}
\DoxyCodeLine{}
\DoxyCodeLine{assert.equal(correct('mit'), 'MIT')}
\DoxyCodeLine{}
\DoxyCodeLine{assert.equal(correct('Apache 2'), 'Apache-\/2.0')}
\DoxyCodeLine{}
\DoxyCodeLine{assert(correct('No idea what license') === null)}
\DoxyCodeLine{}
\DoxyCodeLine{// disable upgrade option}
\DoxyCodeLine{assert(correct('GPL-\/3.0'), 'GPL-\/3.0-\/or-\/later')}
\DoxyCodeLine{assert(correct('GPL-\/3.0', \{ upgrade: false \}), 'GPL-\/3.0') }

\end{DoxyCode}
 