nomar

Convert to/from Roman numerals with ease.

  • nomar

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
nomar
111.1.09 years ago9 years agoMinified + gzip package size for nomar in KB

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