Roman Converter
This package is a helper that converts numbers to roman numerals.
Installation
Since this package is not npm published, you would have to perform a few steps which would normally be taken care of if the package was published.
-
Please run npm install
inside this package.
-
Installation of this as a dependency should be done using the path where this package is located. For example, let's say you have an application which will use the roman-converter dependency, the following directory structure:
|- app
|- roman-converter
The way to install it from app directory would be:
npm install ../roman-converter
Tests
npm run test
Usage
CommonJS:
const toRoman = require('roman-converter').toRoman;
console.log(toRoman(123)); // CXXIII
ES6 Imports:
import { toRoman } from 'roman-converter';
console.log(toRoman(123)); // CXXIII