ECMAScript Visualizer is a Chrome extension that provides example programs for each step of the ECMAScript/JavaScript specification (ECMA-262), powered by ESMeta.
Download the repository and enter the directory:
git clone https://github.com/es-meta/ecma-visualizer
cd ecma-visualizer
Then, run the following command to build the visualizer:
$ npm install && npm run buildAnd follow the instructions below to install the visualizer extension:
- Open the Chrome browser and enter
chrome://extensions/. - Turn on the Developer mode on the top right corner.
- Click the Load unpacked button and select the
ecma-visualizer/.output/chrome-mv3directory.
The chrome extension currently works on ES2024 web page: https://tc39.es/ecma262/2024/.
While other browsers like Firefox and Edge are not officially supported, the project includes polyfills and can be built targeting those browsers. You can try the following steps:
$ npm install
$ npx tsc -b && npx wxt build -b firefox # for Firefox
$ npx tsc -b && npx wxt build -b edge # for Microsoft EdgeThe built extension will be located in the .output directory. To install the extension, refer to your browser’s documentation on loading unpacked extensions. Note that compatibility may vary.