has-bigints reliably detects whether the current JavaScript environment supports native BigInts. It offers a boolean result, crucial for libraries and applications needing to conditionally use BigInt functionality. This small, dependency-free package ensures accurate detection across various browsers and Node.js versions. Using has-bigints prevents errors when BigInt operations are attempted in environments lacking support, improving code robustness and user experience. It simplifies feature detection, especially important in code targeting diverse JavaScript runtimes.
The has-bigints npm package has seen sporadic releases. Initial release was in August 2019 (1.0.0). A follow-up patch (1.0.1) in December 2020. Another patch (1.0.2) was released in April 2022. The latest version, 1.1.0, was released in December 2024. There haven't been any releases in 2025 as of September 10.
From March 2024 to September 2025, has-bigints npm package downloads generally increased, peaking in June 2025 at nearly 190 million. While downloads remained high in July and August 2025, September 2025 shows a sharp decline, likely due to incomplete monthly data.