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

rgt-brain-games

v0.6.25

Published

this is first project from hexlet

Downloads

56

Readme

project brain games from hexlet

Maintainability Test Coverage Build Status

instruction by installing and running

$ sudo npm i -g rgt-brain-games   # make install package with games
$ # after install we have several binary game files, which run right here via cli
$ # in each game need win 3 time in a row, else run game again.
$ # list games:
$ # brain-progression  # find missing number in sequence
$ # brain-prime        # specify a prime number
$ # brain-even         # specify a even number
$ # brain-calc         # define the result of the expression
$ # brain-gcd          # find greatest common divisor
$ # running this games described below

brain-gcd

$ brain-gcd # run
Welcome to the Brain Games!
Find the greatest common divisor of given numbers.

May I have your name? rgt
Hello, rgt!

Question: 37 30
Your answer: 1
Correct!
Question: 49 28
Your answer: 1
1 is wrong answer ;(. Correct answer was 7.
Let's try again, rgt!

brain-calc

$ brain-calc # run
Welcome to the Brain Games!
What is the result of the expression?

May I have your name? rgt
Hello, rgt!

Question: 23 + 5
Your answer: 28
Correct!
Question: 20 * 11
Your answer: 220
Correct!
Question: 28 * 7
Your answer: 198
198 is wrong answer ;(. Correct answer was 196.
Let's try again, rgt!

brain-even

$ brain-even # run
Welcome to the Brain Games!
Answer "yes" if number even otherwise answer "no".

May I have your name? rgt
Hello, rgt!

Question: 2
Your answer: yes
Correct!
Question: 18
Your answer: yes
Correct!
Question: 18
Your answer: yes 
Correct!
Congratulations, rgt!

brain-progression

$ brain-progression # run
Welcome to the Brain Games!
What number is missing in the progression?

May I have your name? rgt
Hello, rgt!

Question:  24 27 .. 33 36 39 42 45 48 51
Your answer: 30
Correct!
Question:  20 .. 22 23 24 25 26 27 28 29
Your answer: 21
Correct!
Question:  26 .. 30 32 34 36 38 40 42 44
Your answer: 28
Correct!
Congratulations, rgt!

brain-prime

$ brain-prime # run
Welcome to the Brain Games!
Answer "yes" if given number is prime. Otherwise answer "no".

May I have your name? rgt
Hello, rgt!

Question: 108
Your answer: no
Correct!
Question: 168
Your answer: no
Correct!
Question: 46
Your answer: no
Correct!
Congratulations, rgt!

install and run brain-prime

asciicast

install and run brain-progression

asciicast

instal and run brain-even

asciicast

instal and run brain-calc

asciicast

install and run brain-gcd

asciicast