1.0.2 • Published 2 years ago

roman-numbers v1.0.2

Weekly downloads
69
License
MIT
Repository
github
Last release
2 years ago

NPM

Roman Numbers

Build Status Coverage Status Known Vulnerabilities

A simple package to convert roman to arabic numbers (and vice versa). It also can check valid roman format.

Installation

How to use it

Fist of all you can require it as follow:

isValidArab

Checks if given value can be converted to roman. Only integers (it checks the type) from 1 to 3999 are valid values.

isValidRoman

Checks if given value can be converted to arab. Only capitalized strings with a valid roman format are valid values.

romanToArab

Converts valid roman number to arab.

arabToRoman

Converts valid roman number to arab.