
Security News
CVE Volume Surges Past 48,000 in 2025 as WordPress Plugin Ecosystem Drives Growth
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.
jstransformer-babel
Advanced tools
Babel support for JSTransformers.
npm install jstransformer-babel
var babel = require('jstransformer')(require('jstransformer-babel'))
var src = 'let a = 0'
var transformed = babel.render(src, {presets: ['es2015']})
//=> '"use strict";\n\nvar a = 0;'
Only render method is implemented, which means that through the JSTransformer architecture all render* APIs are available.
Passing options to Babel is supported as well, and all options unsupported by Babel are filtered out before passing them to Babel.
In babel@6 (jstransformer-babel@2), the default of transpiling from ES2015 is removed. As a result, in order to transpile from ES2015 just like in jstransformer-babel@2, pass in ['es2015'] as the value of the presets option, just like in the example above. If that is too laborious, you can look into using a .babelrc file.
Babel configuration files like .babelrc are also supported. They can only be detected if you use the renderFile* APIs or manually pass in a filename option.
MIT
FAQs
Babel support for JS Transformers.
We found that jstransformer-babel demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.

Security News
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.

Security News
Tailwind Labs laid off 75% of its engineering team after revenue dropped 80%, as LLMs redirect traffic away from documentation where developers discover paid products.