romanint
v0.0.1
Published
A simple integer to roman number converter
Downloads
2
Maintainers
Readme
romanint
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