1.5.0 • Published 9 months ago

convert-to-roman v1.5.0

Weekly downloads
-
License
ISC
Repository
github
Last release
9 months ago

Convert to Roman

Convert decimal to roman numerals and vice versa

Features

  • Roman to decimal
  • Decimal to Roman
  • Loop through roman numerals
  • Easy implementation

Installation

Install my-project with npm

  npm install convert-to-roman

Usage/Examples

const convert = require('convert-to-roman')

var decimal = convert.toDecimal("DCLVII")
console.log(decimal);
// output 657


var roman = convert.toRoman(2023)
console.log(roman);
// output MMXXIII


convert.loop(10,50,5)
    // 10 = start value
    // 50 = end value
    // 5 = increment value
// output X XV XX XXV XXX XXXV XL XLV L
1.5.0

9 months ago

1.4.0

9 months ago

1.3.0

9 months ago

1.2.0

9 months ago

1.1.0

9 months ago

1.0.1

9 months ago