romanize-tss
v1.0.2
Published
Converts the year to Roman Numeral Format, also reverts Roman numerals into numerical format
Downloads
10
Maintainers
Readme
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!