rollup-plugin-node-globals provides browser equivalents for Node.js globals when bundling JavaScript with Rollup. It polyfills globals like Buffer, process, and global so code relying on them can run in environments like web browsers. This plugin is essential for adapting Node.js packages or modules for browser-based projects, ensuring compatibility and avoiding runtime errors related to missing global objects commonly found in Node.js environments.
The rollup-plugin-node-globals npm package saw frequent releases in early 2016, with a few scattered updates until September 2018. After September 2018, there were no further releases and the project appears to be inactive, with no new versions published until August 28, 2025.
rollup-plugin-node-globals downloads show significant growth, especially from April 2025. Downloads peaked in July 2025 at 706,739. While still incomplete, August 2025 downloads indicate a substantial decrease compared to the previous month, suggesting a potential shift in usage trends.