Numerals conversion
Convert numbers to their form in a numeral system.
Currently only implements the roman numerals system converter.
See also: https://en.wikipedia.org/wiki/List_of_numeral_systems
npm i numerals
import { convertNumberToNumeralForm, Language, NumeralForm } from 'numerals';
let x = convertNumberToNumeralForm(8, NumeralForm.Roman, Language.English);
// Outputs VIII
console.log(x);
const { convertNumberToNumeralForm, Language, NumeralForm } = require('numerals')
let x = convertNumberToNumeralForm(8, NumeralForm.Roman, Language.English)
// Outputs VIII
console.log(x);
wget https://neig.es/numerals/script/numerals-ui.js
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Numerals converter</title>
</head>
<body>
<numerals-ui></numerals-ui>
<script src="./script/numerals-ui.js"></script>
</body>
</html>