@javascript-packages/roman-numerals
TypeScript icon, indicating that this package has built-in type declarations

1.0.14 • Public • Published

Roman Numerals

Build Coverage Status NPM Total Downloads

Easily convert integers to roman numerals in one line of code.

Installation

Please execute the following command.

npm i @javascript-packages/roman-numerals

Getting started

By using the following code snippet you can convert numbers in the interval [1, 4999] to Roman numerals.

import { toRoman } from '@javascript-packages/roman-numerals';

const romanNumeral = toRoman(2022);
console.log(romanNumeral); // MMXXII

Found a bug? 💁‍♀️

Thanks for letting us know! Please file an issue and we should reply shortly.

License

This repository is licensed under the MIT license.

Copyright © Stefan Kühnel, All rights reserved.

Dependents (0)

Package Sidebar

Install

npm i @javascript-packages/roman-numerals

Weekly Downloads

81

Version

1.0.14

License

MIT

Unpacked Size

30.8 kB

Total Files

12

Last publish

Collaborators

  • stefankuehnel