romanize-n
v1.0.0
Published
Functions for converting integers to roman numerals and roman numerals to integers. TS definitions included.
Downloads
1
Maintainers
Readme
romanize-n
Functions for converting integers to roman numerals and roman numerals to integers.
Installing
Install via NPM
npm i romanize-n
or via Yarn
yarn add romanize-n
Getting Started
import { romanize, deromanize } from romanize-n;
// Use with integers > 0
let myRomanNumeral = romanize(3999);
console.log(myRomanNumeral); // MMMCMXCIX
let myInt = deromanize(myRomanNumeral);
console.log(myInt); // 3999
Links
Built With
Authors
License
This project is licensed under the MIT License - see the LICENSE.md file for details