A CLI program and library that converts roman numerals to decimals and decimals to roman numerals.
Note Only converts numbers between 0 and 4000 (exclusive).
- Install Node.js v16+
- Install dependencies:
npm ci
- Build distribution files:
npm run build
- Link locally
npm link
$ roman IV
# outputs 4
$ roman 444
# outputs CDXLIV
- Format the code:
npm run lint:fix
- Run the tests:
npm test
- Build the distribution code:
npm run build