1.0.0 • Published 3 years ago

romanize-n v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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

romanize-n's NPM Page

romanize-n's GitHub Page

Built With

TypeScript

Authors

Mick Piereder

License

This project is licensed under the MIT License - see the LICENSE.md file for details