Skip to content

bigggge/runjs.js

Repository files navigation

runjs.js

Build License NPM Size

A JavaScript Interpreter.

The only dependency is Acorn, a JavaScript-based JavaScript parser.

Usage

import { run } from "runjs.js";

run(`console.log("Hello World!")`);

Test

npm test

Support

  • ES5
  • ES2015
    • Let & Const
    • For...of
    • Template Literals
    • Rest
    • Destructuring
    • Arrow Function
    • Class
    • ES modules
  • ES2016
    • Exponentiation operator