The npm package babel-plugin-transform-do-expressions saw its most frequent releases in 2015, peaking in November with 6 versions. Release activity significantly decreased after 2015, with only a few releases scattered between 2016 and 2017. From January 2018 to September 2025, there have been no new versions published.
babel-plugin-transform-do-expressions enables the use of *do expressions* in your JavaScript code, transforming them into standard JavaScript during the Babel compilation process. Do expressions allow you to execute a block of code and return the result, offering a convenient way to embed statement-based logic within expressions. Ideal for simplifying conditional value assignments or inlining complex calculations without needing bulky IIFEs. This plugin helps ensure cross-browser compatibility while using this modern language feature.
Downloads of babel-plugin-transform-do-expressions peaked in November 2024 at over 2.8 million. After a decline, numbers stabilized around 1.5-2.2 million in early-mid 2025. July 2025 saw another peak, but downloads are significantly lower in September, which is still in progress.