1.2.0 • Published 5 months ago

@scottobert/roman-numerals v1.2.0

Weekly downloads
-
License
GPL-2.0
Repository
github
Last release
5 months ago

Quality Gate Status

Security Rating

Reliability Rating

Maintainability Rating

Utility functions for converting integers to roman numerals and vice versa.

šŸ  Homepage

Install

npm install @scottobert/roman-numerals

Run tests

npm run test

Usage

import { romanToInt, intToRoman } from "@scottobert/roman-numerals";

console.log(romanToInt("MCMXCIV")); // 1994
console.log(intToRoman(1994)); // MCMXCIV

New Feature: Validate Roman Numeral Strings

Check if a string is a valid Roman numeral. This can be useful for input validation before conversion.

Example

import { isValidRoman } from "@scottobert/roman-numerals";

console.log(isValidRoman("MCMXCIV")); // true
console.log(isValidRoman("INVALID")); // false

Author

šŸ‘¤ Scott Obert

šŸ¤ Contributing

Contributions, issues and feature requests are welcome!Feel free to check issues page. You can also take a look at the contributing guide.

Show your support

Give a ā­ļø if this project helped you!

šŸ“ License

Copyright Ā© 2022 Scott Obert. This project is GPL--2.0 licensed.


This README was generated with ā¤ļø by readme-md-generator

1.2.0

5 months ago

1.1.0

5 months ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago