{"id":25783,"library":"jazzle","title":"Jazzle","description":"Jazzle is a high-performance ECMAScript transpiler with zero dependencies, designed to convert modern JavaScript features (destructuring, classes, lexical variables, arrow functions, template strings) into ES5-compatible code. As of version 0.9.12, it is still in active development with a focus on efficiency and correctness, notably handling temporal dead zones and super-bound this references. It claims to be roughly 2x faster than Babel on early benchmarks. The package provides a programmatic API (Node.js >=6.20.0) with CLI support planned but not yet released. It differentiates itself by targeting edge cases often missed by other transpilers, while maintaining minimal footprint.","status":"active","version":"0.9.12","language":"javascript","source_language":"en","source_url":"https://github.com/JazzleWare/jazzle","tags":["javascript","ast","ecmascript","fast","transpilation","compilation","syntax","performance"],"install":[{"cmd":"npm install jazzle","lang":"bash","label":"npm"},{"cmd":"yarn add jazzle","lang":"bash","label":"yarn"},{"cmd":"pnpm add jazzle","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"The package is CJS-only and does not support ESM imports.","wrong":"import jazzle from 'jazzle'","symbol":"jazzle","correct":"const jazzle = require('jazzle')"},{"note":"Options must be provided; setting sourceType correctly (e.g., 'module') is important for modern syntax.","wrong":"jazzle.transform(src)","symbol":"transform","correct":"const result = jazzle.transform(src, options)"},{"note":"The default export is the main transform function, not an object with a 'jazzle' property.","wrong":"const { jazzle } = require('jazzle')","symbol":"default","correct":"const jazzle = require('jazzle')"}],"quickstart":{"code":"const jazzle = require('jazzle');\nconst src = 'let [myCoolSource] = ((a=myCoolSource) => [a])();';\nconst options = { sourceType: 'module' };\nconst result = jazzle.transform(src, options);\nconsole.log(result.code);\n// Output includes sourceMap property as well","lang":"javascript","description":"Demonstrates basic usage: requiring jazzle, transforming a code snippet with options, and logging the output."},"warnings":[{"fix":"Always pass an options object with at least sourceType set to 'module' or 'script' as appropriate.","message":"Options object (including sourceType) is required; omitting it may cause unexpected behavior or errors.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Use the Node.js API via require('jazzle') for all transpilation tasks.","message":"CLI is not yet available despite being referenced in the README; use programmatic API only.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Pin to a specific version and test before upgrading.","message":"Version 0.x may contain breaking changes between minor versions; no stability guarantees.","severity":"breaking","affected_versions":">=0.0.0 <1.0.0"},{"fix":"Use require() instead of import statements when consuming this package.","message":"The package does not support ESM imports; only CommonJS require works.","severity":"gotcha","affected_versions":">=0.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run 'npm install jazzle' locally or 'npm install -g jazzle' for global CLI (though CLI not available).","cause":"Package not installed or global install not in NODE_PATH.","error":"Error: Cannot find module 'jazzle'"},{"fix":"Use 'const jazzle = require(\"jazzle\")' and then call jazzle.transform().","cause":"Using default import incorrectly (e.g., import jazzle from 'jazzle' with ESM bundler).","error":"TypeError: jazzle.transform is not a function"},{"fix":"Ensure sourceType is 'module' for ES modules, and check that the feature is supported by Jazzle.","cause":"Source code uses syntax not supported by Jazzle or missing sourceType option.","error":"SyntaxError: Unexpected token (1:4) / unsupported feature"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}