Number with superpowers! 💪


stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
Minified + gzip package size for @clarketm/supernumber in KB



NPM release

Number with superpowers! 💪

This data structure inherit all methods and properties from the Number built-in.

Individual Module Installation


$ yarn add @clarketm/supernumber


$ npm install @clarketm/supernumber --save


constructor(number: number)

Construct a Number

fromRomanNumeral(str: string): number

Convert a roman numeral to number

Name Type Attribute Description
str string Roman numeral

toRomanNumeral(): string

Convert a number to roman numeral

isNumber(str: string): boolean

Test if a string is a valid number

Name Type Attribute Description
str string – string representation of a number

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.