romanize-tss

1.0.2 • Public • Published

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!

/romanize-tss/

    Package Sidebar

    Install

    npm i romanize-tss

    Weekly Downloads

    5

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    6.37 kB

    Total Files

    3

    Last publish

    Collaborators

    • topshagger