Romanize converts years into Roman Numeral format. It also reverts Roman Numerals into decimal format.
There are two functions available, convert and revert.
Romanize.convert(2024); -> Outputs "MMXXIV"
Note: convert takes a second argument (uppercase), this is true by default. If you wish for the result to be lowercase, set this to false.
Conversely
Romanize.revert('MCMLXXXIII'); -> Outputs "1983"
Very straight forward, enjoy!