JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 44
  • Score
    100M100P100Q52687F
  • License MIT

Number with superpowers! 💪

Package Exports

  • @clarketm/supernumber

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@clarketm/supernumber) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Number

NPM release

Number with superpowers! 💪

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

Individual Module Installation

Yarn

$ yarn add @clarketm/supernumber

Npm

$ npm install @clarketm/supernumber --save

API

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