Skip to content

Functions for converting integers to roman numerals and roman numerals to integers.

License

Notifications You must be signed in to change notification settings

mick-io/romanize-n

Repository files navigation

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

About

Functions for converting integers to roman numerals and roman numerals to integers.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published