Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

nomar

reergymerej132ISC1.1.0

Convert to/from Roman numerals with ease.

roman numerals, roman numeral conversion, roman to arabic, arabic to roman, roman, numeral, numerals, arabic, number, conversion

readme

Build Status

Convert to/from Roman numerals with ease.

var nomar = require('nomar');

nomar('LXXXIX');        // 89
nomar('lxxxix');        // 89
nomar(89);              // LXXXIX
nomar(0);               // ''
nomar(['I', 4, 'X']);   // [1, 'IV', 10]

// invalid values
nomar();          // undefined
nomar(null);      // undefined
nomar(-1);        // undefined
nomar(4000);      // undefined

Installation

npm install nomar