browser-env is a zero-configuration npm package that simulates a browser environment within a Node.js environment. It's invaluable for testing JavaScript code designed to run in browsers, enabling you to access browser globals like window, document, and navigator directly in your tests without complex setup. Facilitates smoother development and testing cycles by bridging the gap between browser and Node.js environments, ensuring more reliable code for frontend projects.
The npm package browser-env saw initial releases in February 2013. Release activity was high in 2016 and 2017, with multiple versions published per month. After November 2019, no new versions have been released. This suggests development has stalled with the last version being 3.3.0.
Browser-env npm package downloads show relative stability throughout 2024, fluctuating around 90,000. A dip occurs in December 2024 (62394), followed by a recovery in early 2025. A considerable jump is observed in June and July 2025. August 2025 has a significant drop. September 2025 downloads are partial and show low numbers.