1.0.0 ā€¢ Published 4 years ago

cadena-romano-a-decimal v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

Convert literal roman number to decimal number

šŸ  Homepage

Install

npm install cadena-romano-a-decimal

Usage

First, import module:

const numRomanoAdecimal = require('cadena-romano-a-decimal');

Then you can use the convert function in your app:

const romanString = 'XXI';
const valueDecimal = numRomanoAdecimal(romanString);

if (valueDecimal !== -1) {
  console.log(`${romanString} is ${valueDecimal}`);
} else {
  console.log(`Invalid roman literal!!`);
}

Author

šŸ‘¤ Ivan Chinea

šŸ¤ Contributing

Contributions, issues and feature requests are welcome!Feel free to check issues page. You can also take a look at the contributing guide.

Show your support

Give a ā­ļø if this project helped you!

šŸ“ License

Copyright Ā© 2020 Ivan Chinea. This project is MIT licensed.