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 🙏

© 2025 – Pkg Stats / Ryan Hefner

is-13

v1.1.0

Published

Check if a number is equal to 13

Readme

Special thanks to @casdr for the logo]

What is 13?

It's that feeling in the morning where you thought you ran out of eggs but you open the fridge and there's 12 more, plus one extra. "13" is the big-endian positional-decimal-numeral representation of the unary-numeral "1111111111111", which when compressed via symbolic computation becomes "1111! / 11 + 1" or "1111 ^ 11 - 111" or "111 ^ 11 + 1111". This means the numerical value represented by the base 10 string "13" is an integer of the algebraic form b ^ c - a = (b - n) ^ c + (a + n) where n := 1, which makes it special.

But what is a number? [insert Moon Men theme] well, a number is an abstract object which corresponds to a certain quantity, it can be a whole (integer) quantity, or a fractional (rational) quantity. Numbers can also be irrational, but they are also somewhat fractional in nature. But then, isn't "13" a number? actually no, "13" (as we saw earlier) is just a numeral. But what is a numeral? A numeral is just the graphical, written, or spoken representation of a numerical value. This is very helpful because numbers can't be seen, unless of course you write them in unary notation... But is unary really the closest we can get to "seeing numbers"? We don't know... yet

And as always, thanks for ~watching~ reading

And as always, thanks for watching reading

is-13

An npm package to check if a number is equal to 13. Based on is-thirteen

Installation

npm --save i is-13

or

yarn add is-13
const is = require('is-13');
// Now with elegant syntax.

is(13).thirteen(); // true
is(12.8).roughly.thirteen(); // true
is(6).within(10).of.thirteen(); // true
is(2011).yearOfBirth(); // true

// check your math skillz
is(4).plus(5).thirteen();      // false
is(12).plus(1).thirteen();    // true
is(4).minus(12).thirteen();    // false
is(14).minus(1).thirteen();    // true
is(1).times(8).thirteen();    // false
is(26).divideby(2).thirteen();  // true

Test

npm test

License

A helpful tool by tj-commits, originally by Jezen Thomas, with helpful help from Gytis Daujotas and many fine folk.

You are allowed to sell this on a CD Rom.