Tutorial hero
Lesson icon

cht.sh

Originally published August 11, 2022 Time 1 mins

I mentioned in a recent tip that I’m trying to move more of my workflow over to the terminal wherever possible. This week I found one of my favourite little terminal tricks ever.

There is a fantastic project called cht.sh which describes itself as: Unified access to the best community driven cheat sheets repositories of the world.

What is so cool about it is that you can access it directly using curl inside of your terminal. For example:

curl inside of terminal

Will print something like this directly in your terminal:

terminal

This is especially useful for those “Wait… how does that thing work again” kind of moments (like “Is it slice or splice that will mutate my array?”.)

There are some built in cheat sheets for specific programming languages (it supports 56 programming languages, not just JavaScript), and for anything where there isn’t a specific cheat sheet (like our splice query) it will return results from Stack Overflow.

Learn to build modern Angular apps with my course