major-versions retrieves major Node.js versions (e.g., 16, 18) that a given npm package supports based on its package.json's engines.node field. It's helpful for build tooling and CI/CD pipelines to determine compatibility, identify potential issues, and streamline testing across different Node.js environments. Simplifies node version range parsing to extract distinct major releases, offering a reliable programmatic way to derive essential version support information.
The npm package major-versions experienced initial activity in 2015, releasing versions 1.0.0, 1.0.1, 1.0.2, and 2.0.0. Sporadic releases followed in 2017 (2.0.1), 2018 (2.1.0, 2.2.0) and 2019 (2.2.1.) Since March 2019, there have been no further major version releases, with data showing no activity up to August 2025.
Npm package 'major-versions' downloads show fluctuation with a significant spike in November 2024. Downloads generally range between 178 and 506. July 2025 saw a large increase to 945. August 2025 downloads are at 397, but the month isn't complete.