
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
executor-editor
Advanced tools
šØ Display and evaluate your JavaScript code.
https://piecioshka.github.io/executor-editor/demo/
horizontal
, vertical
Installation:
npm install executor-editor
or
bower install executor-editor
Add CSS class executor-editor
to HTML element:
<pre class="executor-editor">
class Cake {
toString() {
return '[Cake]';
}
}
console.log(String(new Cake()));
</pre>
Add on the bottom of page, example before </body>
<link href="/path/to/executor-editor/dist/executor-editor.css"/>
<link href="/path/to/executor-editor/dist/skins/blue-skin.css"/>
<link href="/path/to/executor-editor/dist/skins/normal-skin.css"/>
<script src="/path/to/executor-editor/dist/executor-editor.js"></script>
<script>ExecutorEditor.setup();</script>
All settings you can pass by HTML attributes.
data-autoevaluate
Default: true
Options: true
| false
Example:
<pre class="executor-editor" data-autoevaluate="false">
[...]
</pre>
data-autofocus
Default: true
Options: true
| false
Example:
<pre class="executor-editor" data-autofocus="true">
[...]
</pre>
data-skin
Default: normal
Options: normal
| blue
Example:
<pre class="executor-editor" data-skin="blue">
[...]
</pre>
The project was created for presentation slides, to embed code and quickly execute it.
The MIT License @ 2015
FAQs
šØ Display and evaluate your JavaScript code
We found that executor-editor demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.Ā It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.