An Exploration of npm Package Co-Usage Examples from Stack Overflow: A Case Study
arXiv:2109.08848 · doi:10.1587/transinf.2021MPP0003
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 co-usage in SO. From over 30,000 SO posts, we extracted 2,100 SO posts related to npm and matched them to 217,934 npm library packages. 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.
References in corpus (4)
- Do Developers Update Their Library Dependencies? An Empirical Study on the Impact of Security Advisories on Library Migration
- SOTorrent: Reconstructing and Analyzing the Evolution of Stack Overflow Posts
- Selecting third-party libraries: The practitioners' perspective
- Recommending Stack Overflow Posts for Fixing Runtime Exceptions using Failure Scenario Matching