jsdc is a JavaScript transpiler that converts ES6/ES2015 code to ES5 for backward compatibility. Current stable version is 0.6.13, last released in 2017. It focuses on safe transformations preserving line numbers for debugging, supports CommonJS/AMD/CMD, and includes features like let/const, arrow functions, classes, generators, destructuring, template literals, and modules. Unlike Babel or Traceur, jsdc is lightweight, has no runtime dependencies, and aims for simplicity. The project appears to be in maintenance mode with no recent updates.
npm install jsdcNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic usage: transpile ES6 code (arrow function, template literal) to ES5 using jsdc.
Add a polyfill such as `import 'es6-shim'` before using Set/Map/Promise.
Avoid using runtime in production; instead, transpile files ahead of time.
Migrate to Babel: `npm install @babel/core @babel/preset-env`
Ensure your target environment supports Object.defineProperty or use a polyfill.
Run `npm install homunculus` alongside jsdc to install the dependency.
Use `const Jsdc = require('jsdc').default` or switch to ES6 import syntax.Run `npm install jsdc --save-dev` to install it as a dev dependency.
Add `import 'regenerator-runtime/runtime'` before using any generator code.
Ensure jsdc.parse() is executed before running the code in an ES5-only environment.
No dependency data recorded yet.