npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

nice-numbers

v1.0.0

Published

Integer sequences, number types and more

Downloads

17

Readme

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)