Skip to content

Latest commit

 

History

History
44 lines (25 loc) · 804 Bytes

README.md

File metadata and controls

44 lines (25 loc) · 804 Bytes

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