- Install the Module in your project root
- With Yarn:
yarn add numeri-romani
- With NPM:
npm i --save numeri-romani
- With Yarn:
- Import the module into your code
const convert = require('numeri-romani')
- Use the module to convert a string of Numbers (e.g. a given year)
let currentYear = '2019';
console.log(converter.generate(currentYear));
- Run your code to see the result
$ => MMXIX
- Converting to Roman Numerals
- The input needs to be a string of numbers
- The numbers you wish to convert cannot exceed four digits
- Convert Roman Numeral into Arabic numerals
- Run the unit tests
- With Yarn:
yarn test
- With NPM:
npm test
- With Yarn: