numerare
v0.0.4
Published
TS functions to convert between Roman and Arabic numerals
Downloads
2
Readme
Numerare
A light TS library for converting to and from Arabic and Roman numerals. Supports numeric values between 1 and 3999.
Install
Using npm, run:
$ npm install numerare
Use
import { toRoman, toArabic } from 'numerare';
// ...
const romanNumerals: string = toRoman(1990);
// MCMXC
const arabicNumerals: number = toArabic(MCMXC);
// 1990