Thursday, July 1, 2021

Difference between npm and yarn

https://www.geeksforgeeks.org/difference-between-npm-and-yarn/


yarn was developed by facebook and is now open-sourced


https://www.sitepoint.com/yarn-vs-npm/


Key takeaway : yarn executes installs in parallel and hence is faster than npm, which installs packages sequentially. Secondly, npm allows packages to run code after installation, which can be viewed as a vulnerability, and yarn puts restrictions on this.

No comments:

Post a Comment

Misc Javascript points

 Nodejs can support multithreading through use of promises _ is the numeric separator for javascript, that means the numbers 10_000, 11.23_0...