UNPKG

roman-utils

Version:

Package for parsing ints to roman digit and roman digits to ints

13 lines (12 loc) 495 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.romanArray = exports.RomanDictionary = void 0; exports.RomanDictionary = new Map(); exports.RomanDictionary.set("M", 1000); exports.RomanDictionary.set("D", 500); exports.RomanDictionary.set("C", 100); exports.RomanDictionary.set("L", 50); exports.RomanDictionary.set("X", 10); exports.RomanDictionary.set("V", 5); exports.RomanDictionary.set("I", 1); exports.romanArray = ['I', 'V', 'X', 'L', 'C', 'D', 'M'];