{"id":26491,"library":"toranb-es6-module-transpiler","title":"ES6 Module Transpiler (toranb fork)","description":"A temporary fork of the es6-module-transpiler incorporating PR #100. The ES6 Module Transpiler (original by Square) is an experimental compiler that allows writing JavaScript using a subset of the ES6 module syntax and compiling to AMD or CommonJS modules. This fork version 0.0.2 was published on npm as a stopgap fix. The project is now obsolete as ES6 module syntax has stabilized and native support exists. Key differentiator: this fork includes a specific patch not yet merged upstream at the time.","status":"deprecated","version":"0.0.2","language":"javascript","source_language":"en","source_url":null,"tags":["javascript","es6","module","transpile","amd","commonjs"],"install":[{"cmd":"npm install toranb-es6-module-transpiler","lang":"bash","label":"npm"},{"cmd":"yarn add toranb-es6-module-transpiler","lang":"bash","label":"yarn"},{"cmd":"pnpm add toranb-es6-module-transpiler","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"this is a fork that includes a specific PR on top of the upstream package","package":"es6-module-transpiler","optional":false}],"imports":[{"note":"This package is CommonJS only; no ESM support.","wrong":"import { Compiler } from 'es6-module-transpiler';","symbol":"Compiler","correct":"var Compiler = require('es6-module-transpiler').Compiler;"},{"note":"Container is a named export, not default.","wrong":"import Container from 'es6-module-transpiler';","symbol":"Container","correct":"var Container = require('es6-module-transpiler').Container;"},{"note":"formatters is a property on the exports object, not a named export in older versions.","wrong":"const { formatters } = require('es6-module-transpiler');","symbol":"Formatters","correct":"var formatters = require('es6-module-transpiler').formatters;"}],"quickstart":{"code":"var Compiler = require('es6-module-transpiler').Compiler;\nvar inputString = 'import { foo } from \"bar\"; export var baz = foo;';\nvar compiler = new Compiler(inputString, 'myModule');\nvar output = compiler.toAMD();\nconsole.log(output);","lang":"javascript","description":"Demonstrates using the Compiler class to transpile ES6 module syntax to AMD output."},"warnings":[{"fix":"Migrate to ES6 modules natively or use a stable transpiler like Babel.","message":"This package is a temporary fork and is no longer maintained. Use native ES modules or modern bundlers.","severity":"deprecated","affected_versions":"*"},{"fix":"Do not rely on this for production code; only for experimentation.","message":"The package version 0.0.2 is experimental and may not reflect final ES6 spec syntax.","severity":"gotcha","affected_versions":"*"},{"fix":"Use the official package if the fix has been merged upstream.","message":"This fork includes a specific PR #100 fix; check the upstream repository for merged changes.","severity":"gotcha","affected_versions":"0.0.2"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"npm install toranb-es6-module-transpiler and require('toranb-es6-module-transpiler')","cause":"The package name on npm is 'toranb-es6-module-transpiler', not 'es6-module-transpiler'.","error":"Cannot find module 'es6-module-transpiler'"},{"fix":"Use require('toranb-es6-module-transpiler') or configure webpack resolve.alias.","cause":"Using a bundler like webpack with an incorrect import path.","error":"Module not found: Error: Can't resolve 'es6-module-transpiler'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}