# romint

> Tiny of roman numerals to integer and vice versa.

Latest version **0.0.1** (published 2022-10-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install romint
pnpm add romint
yarn add romint
bun add romint
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2022-10-23 |
| First published | 2022-10-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | ctuanle |
| Maintainers | ctuanle |
| Keywords | roman, roman numerals, convertor |

## Links

- npm: https://www.npmjs.com/package/romint
- Repository: https://github.com/ctuanle/romint
- Homepage: https://github.com/ctuanle/romint#readme
- Issues: https://github.com/ctuanle/romint/issues
- npm.io page: https://npm.io/package/romint

## Recent versions

- 0.0.1 (latest) — 2022-10-23

## README

# ROMINT

Simple implementation of roman numerals to integer convertor.

## Installation

```shell
yarn add romint
```

or

```shell
npm install romint
```

## Usage

With typescript:

```ts
import Romint from 'romint';
// or import { parseRoman, parseInt } from 'romint';
const ro = Romint.parseRoman(70);
console.log(ro); // 'LXX'
const num = Romint.parseInt(ro);
console.log(num); // 70
```

With javascript

```js
const romint = require('romint');
console.log(romint.parseInt('MMMCMXCIX')); // 3999
```

Input validating:

- for parseRoman: input must be a positive integer less than 4000
- for parseInt: input must be a valid roman numeral as a string

---
_Source: https://npm.io/package/romint · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
