Ninja Pumpkin Mutants

    nice-numbers
    TypeScript icon, indicating that this package has built-in type declarations

    0.2.0 • Public • Published

    Nice Numbers

    Installation

    Using npm:

    $ npm i nice-numbers

    Usage

    Checks

    Composite https://en.wikipedia.org/wiki/Composite_number

    checkComposite(number: number) => boolean

    Cube https://en.wikipedia.org/wiki/Cube_(algebra)

    checkCube(number: number) => boolean

    Even https://en.wikipedia.org/wiki/Parity_(mathematics)

    checkEven(number: number) => boolean

    Factorial https://en.wikipedia.org/wiki/Factorial

    checkFactorial(number: number) => boolean

    Fibonacci https://en.wikipedia.org/wiki/Fibonacci_number

    checkFibonacci(number: number) => boolean

    Negative https://en.wikipedia.org/wiki/Negative_number

    checkNegative(number: number) => boolean

    Odd https://en.wikipedia.org/wiki/Parity_(mathematics)

    checkOdd(number: number) => boolean

    Prime https://en.wikipedia.org/wiki/Prime_number

    checkPrime(number: number) => boolean

    Positive https://en.wikipedia.org/wiki/Positive_real_numbers

    checkPositive(number: number) => boolean

    Square https://en.wikipedia.org/wiki/Square_number

    checkSquare(number: number) => boolean

    Sequences

    Cube http://oeis.org/A000578

    cubeSequence(start?: number, length?: number) => number[]

    Cube http://oeis.org/A000578

    cubeSequence(start?: number, length?: number) => number[]

    Even http://oeis.org/A005843

    evenSequence(start?: number, length?: number)

    Factorial http://oeis.org/A000142

    factorialSequence(start?: number, length?: number)

    Fibonacci http://oeis.org/A000045

    fibonacciSequence(start?: number, length?: number)

    Natural http://oeis.org/A000027

    naturalSequence(start?: number, length?: number)

    Odd http://oeis.org/A005408

    oddSequence(start?: number, length?: number)

    Powers of two https://oeis.org/A000079

    powers2Sequence(start?: number, length?: number)

    Square http://oeis.org/A000290

    squareSequence(start?: number, length?: number)

    Star http://oeis.org/A003154

    starSequence(start?: number, length?: number)

    Triangular https://oeis.org/A000217

    triangularSequence(start?: number, length?: number)

    Install

    npm i nice-numbers

    DownloadsWeekly Downloads

    2

    Version

    0.2.0

    License

    MIT

    Unpacked Size

    27.7 kB

    Total Files

    57

    Last publish

    Collaborators

    • pera-urosevic