Transform the nullish coalescing operator (??) to avoid unnecessary null checks. This Babel plugin enables the use of the nullish coalescing operator, providing a concise way to handle default values when dealing with null or undefined. Instead of writing verbose conditional logic, developers can leverage ?? for cleaner and more readable code, improving maintainability and reducing boilerplate. It ensures compatibility with older JavaScript environments that may not natively support the operator.
Releases of @babel/plugin-transform-nullish-coalescing-operator peaked in 2023-05 and 2024-10, with 2 and 3 versions respectively. There were consistent releases in the first half of 2024, with a period of no releases afterwards. So far in 2025 there have been 3 releases, in January and April. Many months showed no releases at all.
@babel/plugin-transform-nullish-coalescing-operator downloads show a steady rise from March 2024 to August 2025, peaking at 95.4 million. September 2025 downloads are significantly lower, at 35 million, likely due to incomplete data for the month. The plugin maintains strong and growing usage.