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

ctgplayer

v1.1.2

Published

To solve puzzles in Calculator: The Game.

Readme

ctgplayer

npm

To solve puzzles in Calculator: The Game.

Install

Install via npm:

$ npm install -g ctgplayer

or simply clone this repo via git clone.

Usage

$ ctgplay (setting)+

where setting is one of:

| setting | function | number | | :-------------- | :---------------------------------- | :--------------- | | s=<start> | to give the start number | 1 | | e=<end> | to give the end number (goal) | 1 | | m=<max_steps> | to give the max number of steps | 1 | | o=<operation> | to give one of the operations | 1 or more than 1 |

Operation Notation

  • calculating
    • +<x>
    • -<x>
    • *<x> (need to be escaped in shell)
    • /<x>
  • <x>: add number at the end
  • rev: reverse
  • <<: <<, shift (need to be escaped in shell)
  • x^2: $x^2$, square
  • <pat>=><aft>: pat=>aft, replace (need to be escaped in shell)
  • +/-: +/-, positive<=>negative

When escaping an operation in shell, put the o=<operation> part in a pair of quotation marks:

'o=12=>34'

Example

Level 72

Level 72 in Calculator: The Game:

$ ctgplay s=0 e=28 m=7 o=+6 o=-3 o=rev 'o=<<'

Output:

[
  '+6', '+6',
  '<<', '+6',
  '+6', 'rev',
  '-3'
]

which means

s=>start: 0
o1=>operation: +6
o2=>operation: +6
o3=>operation: <<
o4=>operation: +6
o5=>operation: +6
o6=>operation: rev
o7=>operation: -3
e=>end: 28

s(right)->o1(right)->o2(right)->o3(right)->o4(right)->o5(right)->o6(right)->o7(right)->e

Level 52

Level 52 in Calculator: The Game:

$ ctgplay s=25 e=4 m=5 o=-4 'o=*-4' o=/3 o=/8 o=+/-

Output:

[ '-4', '/3', '-4', '-4', '*-4' ]

Level 36

Level 36 in Calculator: The Game:

$ ctgplay s=0 e=-85 m=4 o=+6 o=5 o=-7

Output:

[ '+6', '-7', '-7', '5' ]

Level 29

Level 29 in Calculator: The Game:

$ ctgplay s=0 e=93 m=4 o=+6 'o=*7' 'o=6=>9'

Output:

[ '+6', '6=>9', '*7', '6=>9' ]