Comparative analysis of JavaScript package managers - yarn and npm


Abstract

In this article, two leading solutions for managing packages in projects which are using JavaScript technology (yarn and npm) were subjected to a comparative analysis. As part of the implementation, two configuration files were created, one of which represents an empty application created on the basis of an application template based on the Angular framework in version 8. The second file reflects an extensive web application based on the same framework, but with the addiction of over 100 dependencies. The research was focused on the time efficiency of both solutions.


Keywords

NPM; yarn; package manager; performance testing

MSR '16: Proceedings of the 13th International Conference on Mining Software Repositories https://dl.acm.org/doi/abs/10.1145/2901739.2901743, [24.01.2021].

Charakterystyka NPM https://www.freecodecamp.org/news/what-is-npm-a-node-package-manager-tutorial-for-beginners/, [03.01.2021].

Działanie menadżerów pakietów JavaScript https://www.freecodecamp.org/news/javascript-package-managers-101-9afd926add0a/, [03.01.2021].

Charakterystyka yarn https://engineering.fb.com/2016/10/11/web/yarn-a-new-package-manager-for-javascript/, [11.02.2021].

E. Wittern, P. Suter, S, Rajagopalan, A look at the dynamics of the JavaScript package ecosystem, MSR’16: Proceedings of the 13 Conference of Mining Software Repositories, (2016) 351-361, https://dl.acm.org/doi/10.1145/2901739.2901743.

A. Jacobs, Comparsion of Javascript Package Managersm 2019, https://www.theseus.fi/handle/10024/227945, [24.01.2021].

Wykres popularności obu rozwiązań https://www.npmtrends.com/npm-vs-yarn, [24.01.2021].

Download

Published : 2021-06-30


Chodorowski, M. (2021). Comparative analysis of JavaScript package managers - yarn and npm. Journal of Computer Sciences Institute, 19, 75-80. https://doi.org/10.35784/jcsi.2460

Michał Chodorowski  mic.chodorowski@gmail.com
Lublin University of Technology  Poland