npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript.Learn more »

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

37

version

1.1.0

license

ISC

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability