Wondering what’s next for npm?Check out our public roadmap! »

    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

    90

    Version

    1.1.0

    License

    ISC

    Last publish

    Collaborators

    • avatar