UNPKG

defs

Version:

Static scope analysis and transpilation of ES6 block scoped const and let variables, to ES3.

15 lines (13 loc) 379 B
<html> <body> <p> Run <code>bundle.sh</code>, then bring up your JavaScript console and call <code>defs</code> </p> <script src="defs_bundle.js"></script> <script> var defs = require("./defs-main"); // The bundle can be loaded in node like this, for test purposes: // var defs = eval(String(fs.readFileSync("./defs_bundle.js")))("./defs-main") </script> </body> </html>