Registry / devops / esdown

esdown

JSON →
library1.2.8jsnpmunverified

An ES6+ to ES5 compiler and runtime environment, written in ES6. Version 1.2.8 is the current stable release. Allows writing programs using next-generation JavaScript features (classes, modules, etc.) and compiling them to ES5 for legacy environments. Can also be used as a runtime to execute ES6+ modules on Node.js via a REPL or direct module execution. Provides a CLI for translation with bundling and global export options. Key differentiator: includes module loading and bundling, comparable to Babel but more limited in scope and features; largely superseded by Babel and TypeScript.

devopshttp-networking
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

esdown is primarily used with CommonJS require. No default ES module export exists.

var esdown = require('esdown');

translate is a method on the exported object, not a named export.

var esdown = require('esdown'); esdown.translate(input, options);

CLI flags must be preceded by hyphens. Use -i for input, -o for output, -b for bundle, -r for runtime.

esdown -i src/main.js -o build/output.js -b -r

Demonstrates using esdown as a runtime to execute ES6 modules and as a compiler to produce a bundled ES5 output.

// Install globally // npm install -g esdown // Create a file main.js with ES6 module syntax // main.js: import { add } from './math.js'; console.log(add(2, 3)); // math.js: export function add(a, b) { return a + b; } // Run directly with esdown runtime: // esdown main.js // Or compile to ES5 bundle: // esdown -i main.js -o bundle.js -b -r
esdown --version
Debug
Known footguns
deprecatedesdown is effectively deprecated; consider using Babel or TypeScript for ES6+ compilation.
gotchaesdown does not support the full ES6 specification; see documentation for limitations.
breakingThe API may have changed between versions; no clear changelog provided.
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
10 hits · last 30 days
gptbot
3
ahrefsbot
3
claudebot
3
bingbot
1
Resources