cadena-romano-a-decimal

1.0.0 • Public • Published

Welcome to cadena-romano-a-decimal module 👋

Version Documentation Maintenance License: MIT

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.

Readme

Keywords

Package Sidebar

Install

npm i cadena-romano-a-decimal

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

7.33 kB

Total Files

4

Last publish

Collaborators

  • chitenavi