An Exploration of npm Package Co-Usage Examples from Stack Overflow: A Case Study

Syful Islam, Dong Wang, Raula Gaikovina Kula, Takashi Ishio, Kenichi Matsumoto

Research output: Contribution to journalArticlepeer-review

1 Citation (Scopus)

Abstract

Third-party package usage has become a common practice in contemporary software development. Developers often face different challenges, including choosing the right libraries, installing errors, discrepancies, setting up the environment, and building failures during software development. The risks of maintaining a third-party package are well known, but it is unclear how information from Stack Overflow (SO) can be useful. This paper performed an empirical study to explore npm package co-usage examples from SO. From over 30,000 SO question posts, we extracted 2,100 posts with package usage information and matched them against the 217,934 npm library package. We find that, popular and highly used libraries are not discussed as often in SO. However, we can see that the accepted answers may prove useful, as we believe that the usage examples and executable commands could be reused for tool support.

Original languageEnglish
Pages (from-to)11-18
Number of pages8
JournalIEICE Transactions on Information and Systems
VolumeE105D
Issue number1
DOIs
Publication statusPublished - 2022
Externally publishedYes

All Science Journal Classification (ASJC) codes

  • Software
  • Hardware and Architecture
  • Computer Vision and Pattern Recognition
  • Electrical and Electronic Engineering
  • Artificial Intelligence

Fingerprint

Dive into the research topics of 'An Exploration of npm Package Co-Usage Examples from Stack Overflow: A Case Study'. Together they form a unique fingerprint.

Cite this