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

https://github.com/sonnyt/console

Simple JavaScript/TypeScript console
https://github.com/sonnyt/console

editor javascript react typescript

Last synced: 5 months ago
JSON representation

Simple JavaScript/TypeScript console

Awesome Lists containing this project

README

          

# JavaScript/TypeScript Console

Simple JavaScript/TypeScript console. Open source alternative to [JSFiddle](https://jsfiddle.net) and [JS Bin](https://jsbin.com).

![418shots_so](https://github.com/sonnyt/console/assets/183387/bcb1ce20-c983-43c9-aefa-5ce8d546eb82)

## Try it out
Try out the console [here](https://console.sonnyt.com).

## Why?
I needed a convenient way to quickly run JavaScript and TypeScript code without having to open VSCode or a terminal. Other alternatives I found were either too bloated with a heavy focus on HTML and CSS, or too basic with unreliable logging. So, I decided to build my own code runner using the same editor that VSCode uses, which provides a lot of handy features right out of the box.

## Features
- TypeScript support
- Code completion
- Decent logging capabilities
- Lightweight and user-friendly
- Localstorage support for data persistence
- Powered by [Monaco](https://microsoft.github.io/monaco-editor/) editor for a rich editing experience

## Shortcuts
- `CMD/CTRL+ENTER` - Runs the code.
- `CMD/CTRL+K` - Clears the logs.