0.0.1 • Published 12 months ago

romanint v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

romanint

CI codecov

A simple integer to roman number converter

Install

npn

npm install romanint

yarn

yarn add romanint

pnpn

pnpm add romanint

Import

Using import (ES Module)

import toRoman from 'romanint';

Using Node.js require

const toRoman = require('romanint');

In the browser

After including the script tag into your html file, toRoman method will be globally available.

Usage

console.log(toRoman(123));
> 'CXXIII'

License

MIT © 2020-2024 Manuel Fernández @manferlo81