Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/piecioshka/executor-editor

:hammer: Display and evaluate your JavaScript code.
https://github.com/piecioshka/executor-editor

Last synced: 2 months ago
JSON representation

:hammer: Display and evaluate your JavaScript code.

Lists

README

        


Executor Editor v2.0


executor-editor


:hammer: Display and evaluate your JavaScript code.




npm version


downloads count


snyk

## Preview 🎉

## Features

* :white_check_mark: Embed any programming code
* :white_check_mark: Highlight JavaScript syntax
* :white_check_mark: Auto-evaluate the JavaScript code
* :white_check_mark: Execute code on demand
* :white_check_mark: Layout modes: `horizontal`, `vertical`
* :white_check_mark: Multiple instance on single page
* :white_check_mark: Support skins
* :white_check_mark: Display errors in red color

## Installation

```bash
npm install executor-editor
```

or

```bash
bower install executor-editor
```

## Usage

1. Add CSS class `executor-editor` to HTML element:

```html


class Cake {
toString() {
return '[Cake]';
}
}

console.log(String(new Cake()));


```

2. Add on the bottom of page, example before `