<  Retour au portail Polytechnique Montréal

On the untriviality of trivial packages: an empirical study of npm JavaScript packages

Md Atique Reza Chowdhury, Rabe Abdalkareem, Emad Shihab et Bram Adams

Ensemble de données (2019)

Document en libre accès chez l'éditeur officiel
Un lien externe est disponible pour ce document
Afficher le résumé
Cacher le résumé

Abstract

Nowadays, developing software would be unthinkable without the use of third-party packages. Although such code reuse helps to achieve rapid continuous delivery of software to end-users, blindly reusing code has its pitfalls. For example, prior work has investigated the rationale for using packages that implement simple functionalities, known as trivial packages. This prior work showed that although these trivial packages were simple, they were popular and prevalent in the npm ecosystem. This popularity and prevalence of trivial packages peaked our interest in questioning the ‘triviality of trivial packages’.

To better understand and examine the triviality of trivial packages, we mine a large set of JavaScript projects that use trivial npm packages and evaluate their relative centrality. Specifically, we evaluate the triviality from two complementary points of view: based on project usage and ecosystem usage of these trivial packages. Our result shows that trivial packages are being used in central JavaScript files of a software project. Additionally, by analyzing all external package API calls in these JavaScript files, we found that a high percentage of these API calls are attributed to trivial packages. Therefore, these packages play a significant role in JavaScript files. Furthermore, in the package dependency network, we observed that 16.8% packages are trivial and in some cases removing a trivial package can impact approximately 29% of the ecosystem. Overall, our finding indicates that although smaller in size and complexity, trivial packages are highly depended on packages by JavaScript projects. Additionally, our study shows that although they might be called trivial, nothing about trivial packages is trivial.

Mots clés

Matériel d'accompagnement:
Département: Département de génie informatique et génie logiciel
URL de PolyPublie: https://publications.polymtl.ca/79320/
Source: Zenodo
DOI: 10.5281/zenodo.3924700
Autres DOI associés à ce document: 10.5281/zenodo.3924701; 10.5281/zenodo.4019184; 10.5281/zenodo.4019183; 10.5281/zenodo.4019236; 10.5281/zenodo.4019091
URL officielle: https://doi.org/10.5281/zenodo.3924700
Date du dépôt: 25 août 2026 15:12
Dernière modification: 11 sept. 2026 14:57
Citer en APA 7: Chowdhury, M. A. R., Abdalkareem, R., Shihab, E., & Adams, B. (2019). On the untriviality of trivial packages: an empirical study of npm JavaScript packages [Ensemble de données]. Zenodo. https://doi.org/10.5281/zenodo.3924700

Statistiques

Dimensions

Actions réservées au personnel

Afficher document Afficher document