/romanjs

Converts numbers from decimal to roman and vice versa

Primary LanguageJavaScriptMIT LicenseMIT

RomanJS

npm npm bundle size (minified) JavaScript Style Guide NpmLicense

Converts numbers from decimal to roman and vice versa

Installation

$ npm install romanjs

Usage

const romanjs = require('romanjs');

const romanNumber = romanjs.roman(23);
const decimalNumber = romanjs.decimal('XXIII');

console.log(romanNumber); // XXIII
console.log(decimalNumber); // 23

License

RomanJS is under MIT License.