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 🙏

© 2026 – Pkg Stats / Ryan Hefner

brain-games-lvl1-s89

v7.0.1

Published

a pack of mini games

Readme

project-lvl1-s89

Code Climate Test Coverage Issue Count Build Status

A set of mini-games launched from the console. These games are similar to what is usually called Brain Games.

Table of Contents

Installation

  1. Install package globally npm i -g brain-games-lvl1-s89.
  2. Add folder with bin files to environment variable PATH

$ PATH=$PATH:~/<path to node>/lib/node_modules/brain-games-lvl1-s89/dist/bin/

asciicast

List of games

Greeting

Greets user

How to play

$ brain-games

Game: "Check for parity"

The essence of the game is as follows: the user is shown a random number. And he needs to answer Yes, if the number is even, or No - if odd. Any incorrect entry is considered an error, for example, n and is equivalent to an incorrect answer.

How to play

$ brain-even

asciicast

Game: "Calculator"

The essence of the game is as follows: the user is shown a random mathematical expression, for example 35 + 16, which he/she needs to calculate and write the correct answer.

How to play

$ brain-calc

Game: "The greatest common divisor (GCD)"

The essence of the game is as follows: the user is shown two random numbers, for example, 25 50. The user must calculate and enter the greatest common divisor of these numbers.

How to play

$ brain-gcd

Game: "Balance"

A balanced number is a number in which the smallest digit differs from the largest one by more than one.

Examples of balanced numbers are 111, 233, 55, 001, 9999, 0001.

And, for example, the number 123 is not balanced because the smallest digit in it is 1, and the largest one is 3, and the difference between them is 2. When balancing the numbers, "large" digits give the excess "smaller" so that the number eventually becomes Balanced. In the case of the number 123, the number 3 should give the number 1, and in the end we get the number 222.

The order of digits in a balanced number is in ascending order. For example, instead of 322 and 232, you need to specify 223.

How to play

$ brain-balance

Game: "Arithmetic progression"

The player must determine the lost number. 5 7 9 11 13 .. 17 19 21 23 Answer is 15

How to play

$ brain-progression

Game: "Is it a prime number?"

Is it a prime number?

How to play

$ brain-prime