This is a library that will convert back and forth from Roman Numerals to Arabic Numbers.
const { RomanNumber } = require('./roman');
console.log((new RomanNumber(1515)).toString());
See program.js for more examples.
Ensure you have Npm 10 installed (eg nvm use 10
or download and install NPM & Node directly)
Install Node Modules:
npm i
npm run test
npm run lint
npm run sample