🚀 DAY 2 OF LAUNCH WEEK: Unify Your Security Stack with Socket Basics.Learn more →
Socket
Book a DemoInstallSign in
Socket

@finn-vgtl/romanize

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@finn-vgtl/romanize

Validate and convert roman numbers to and from arabic.

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

Romanize

Test and Release NPM Version MIT License semantic-release

Validate and convert roman numbers to and from arabic.

Install via npm

npm i @finn-vgtl/romanize

Usage

import { isRoman, romanize, deromanize } from '@finn-vgtl/romanize'
// or
const romanize = require('@finn-vgtl/romanize')

// validate roman numbers
isRoman('MMXXI') // true
isRoman('ABC')   // false

// romanize arabic numbers
romanize(123) // "CXXIII"

// deromanize roman numbers
deromanize("CXXIII") // 123

Keywords

validate

FAQs

Package last updated on 24 Aug 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts