{"id":25255,"library":"es6-transpiler","title":"es6-transpiler","description":"An ES6 to ES5 transpiler that focuses on producing output without a runtime library, using only polyfills when necessary. It avoids try/catch for block binding, supports spread via .concat with iterator protocol, and strives for minimal temporary variables. The project is in beta and supports classes, destructuring, block binding (let/const), arrow functions, spread, for-of, comprehensions, template strings, object literals, binary/octal literals, unicode code point escapes, and RegExp flags. It does not support modules, generators, or symbols.  Release cadence: dormant; latest version 0.7.18 from 2015. Key differentiator: no runtime library, line-to-line mapping, Closure Compiler support.","status":"deprecated","version":"0.7.18","language":"javascript","source_language":"en","source_url":"https://github.com/termi/es6-transpiler","tags":["javascript","es6-transpiler","scope","blockscope","block-scope","let","const","var","es6"],"install":[{"cmd":"npm install es6-transpiler","lang":"bash","label":"npm"},{"cmd":"yarn add es6-transpiler","lang":"bash","label":"yarn"},{"cmd":"pnpm add es6-transpiler","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"Package is not an ES module; only CommonJS require works.","wrong":"import { transpile } from 'es6-transpiler';","symbol":"transpile","correct":"var transpile = require('es6-transpiler').transpile;"},{"note":"No default export; require returns an object with transpile method.","wrong":"import es6transpiler from 'es6-transpiler';","symbol":"default","correct":"var es6transpiler = require('es6-transpiler');"},{"note":"run() is available for programmatic use with source string.","wrong":"","symbol":"run","correct":"var es6transpiler = require('es6-transpiler'); es6transpiler.run(src, options);"}],"quickstart":{"code":"var es6transpiler = require('es6-transpiler');\nvar result = es6transpiler.transpile('let x = 1; const y = 2;');\nconsole.log(result.src);\n// Optionally configure with options object:\nvar result2 = es6transpiler.transpile('() => 42', { environments: ['node'] });\nconsole.log(result2.src);","lang":"javascript","description":"Demonstrates programmatic usage: require, transpile a simple ES6 snippet, and log the output ES5 source."},"warnings":[{"fix":"Use Babel or Typescript for ES6 transpilation.","message":"Project is no longer maintained; not compatible with modern Node.js versions (ES6 features in V8 have diverged).","severity":"deprecated","affected_versions":">=0.7.18"},{"fix":"Include es5-shim or a polyfill before using the output.","message":"Requires an Object.create polyfill for older browsers (e.g., IE8).","severity":"breaking","affected_versions":">=0.1.0"},{"fix":"Avoid using unsupported ES6 features or switch to a more modern transpiler.","message":"The transpiler does not support modules, generators, or Symbol; if used on code with these, it may produce incorrect output or crash.","severity":"gotcha","affected_versions":">=0.1.0"},{"fix":"Define your own type declarations or use @ts-ignore.","message":"The package does not ship TypeScript definitions; types must be declared manually.","severity":"gotcha","affected_versions":">=0.1.0"},{"fix":"Use grunt-es6-transpiler or gulp-es6-transpiler for build tool integration.","message":"The transpile function returns an object; it is not a streaming transform. For Gulp/Grunt, use wrapper plugins.","severity":"gotcha","affected_versions":">=0.1.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 es6-transpiler' in your project directory.","cause":"Package not installed or not found in node_modules.","error":"Cannot find module 'es6-transpiler'"},{"fix":"Use 'var es6transpiler = require(\"es6-transpiler\");' instead of ES module import.","cause":"Incorrect import: using import instead of require on a CommonJS module.","error":"TypeError: es6transpiler.transpile is not a function"},{"fix":"Remove modules from source or use another transpiler like Babel.","cause":"Transpiler does not support 'import' statements (modules).","error":"SyntaxError: Unexpected token import (or other ES6 syntax) in transpiled output"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}