Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 684 Bytes

File metadata and controls

28 lines (18 loc) · 684 Bytes

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.