Today I Learned - Rocky Kev

TIL how to get a list of all globally installed npm commands

POSTED ON:

TAGS:

New Project.

You type in vue create my-project.

Magic.

But then you think to yourself. How the heck is vue a command line?

Well, you probably installed it globally. I was curious on what other global commands I installed.

The magic command is: npm list -g --depth 0

REF:
npm tricks part 1: Get list of globally installed packages


Related TILs

Tagged:

TIL types of malicious npm attacks

In the case of ionicons, the miscreants published 18 versions containing malicious form-stealing code; for example, icon-package (according to NPM download stats) has over 17,000 downloads. Other typo-squatting examples include umbrellaks instead of umbrellajs and so on.

TIL malware in node_modules

The very first line fetches the victim's country code using their IP address. If the victim is from Russia, Ukraine, Belarus, or Kazakhstan, then the malware exits early.

TIL NPM Christmas

This cute binary from NPM lets you really kick off the holidays.