DEV Community

Rohov Dmytro
Rohov Dmytro

Posted on • Edited on

1 2

Friday Quick Tips — Use package.json As a Shortcut Holder

Really quick tip for today.

I've been programming using Node.js for quite a while now. Six, seven years? Damn. And only in recent projects I've started to «save» common scripts as a yarn «shortcuts». Damn++!

Alt Text

It's extremely simple. Simple as that:

Alt Text

Every morning it makes me a couple of presses away from a Carpal tunnel syndrome! Nice!

That's it. That simple tip.

Yours, truly, RG, on his way from consumer to creator.

Save the clicks for something more meaningful!

Top comments (1)

Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt

I migrated to robo, because YAML is superior the JSON, especially for multiline strings.

This post blew up on DEV in 2020:

js visualized

🚀⚙️ JavaScript Visualized: the JavaScript Engine

As JavaScript devs, we usually don't have to deal with compilers ourselves. However, it's definitely good to know the basics of the JavaScript engine and see how it handles our human-friendly JS code, and turns it into something machines understand! 🥳

Happy coding!