Notoriously Problematic Merge
Miss any of our Open RFC calls?Watch the recordings here! »

nomar

1.1.0 • Public • Published

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

Install

npm i nomar

DownloadsWeekly Downloads

507

Version

1.1.0

License

ISC

Last publish

Collaborators

  • avatar