Functions for converting integers to roman numerals and roman numerals to integers.
Install via NPM
npm i romanize-n
or via Yarn
yarn add romanize-n
import { romanize, deromanize } from romanize-n;
// Use with integers > 0
let myRomanNumeral = romanize(3999);
console.log(myRomanNumeral); // MMMCMXCIX
let myInt = deromanize(myRomanNumeral);
console.log(myInt); // 3999
This project is licensed under the MIT License - see the LICENSE.md file for details