Today I Learned - Rocky Kev

TIL the -s in npm install means silent install

POSTED ON:

TAGS:

npm install <package> -s

What does the -s mean?

It's short for --silent.

-s appears to silence the output of the command (at least in npm v7.0.15).

In other words, including -s (or --silent) in your npm install command means that it will have no output (only a newline)

Via
https://stackoverflow.com/questions/54471399/what-npm-install-s-mean#:~:text=npm -S with,your dependencies in your package.


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.