lukehaas
Repos
47
Followers
660
Following
89

A collection of loading spinners animated with CSS

6979
1029

A collection of useful regex patterns

2226
123

An experiment with CSS clip-path and variables

127
13

Shapely - JavaScript canvas library

61
20

RunJS is a JavaScript playground for macOS, Windows and Linux. Write code with instant feedback and access to Node.js and browser APIs.

1822
37

Events

add screw holes

Created at 9 hours ago

add epd frame

Created at 9 hours ago
issue comment
After Loading big data, can't kill process

@lasharela were you able to resolve this?

Created at 2 days ago
closed issue
npm packages error

1678896065195

Created at 2 days ago
closed issue
Feature Request: Top level await

To try out things, top level await would be awesome. It is very annoying to write:

(async () => {
    async function t() {}
    await t();
})().catch(console.trace);

With top level await:

async function t() {}

await t();
Created at 2 days ago
issue comment
Feature Request: Top level await

@wc-matteo @timuric @jimmyn @hoegertn @letoast Top-level await is now supported. However, it's not compatible with displaying runtime values. For that reason, it is not enabled by default. You can enable top-level await from the settings:

Screenshot 2023-03-20 at 10 15 18

Created at 2 days ago
issue comment
Not showing results

Are you constantly seeing this issue, or is it just when you execute some particular code?

Created at 6 days ago
issue comment
Not showing results

@juanjzb have you tried doing a fresh install of 2.8.0?

Created at 6 days ago
closed issue
Not showing results

On the last version, playground is not showing results of nothing, and it only shows a loader in the top-right corner of the code editor

Created at 6 days ago
issue comment
False error: `TypeError: console.log(...) is not a function`

@brandonmcconnell this is one of the scenarios where a semi-colon is essential. You'll see the same error in any environment.

Created at 1 week ago
issue comment
Broken after update

This issue occurs when the app is opened while an update is being installed. Version 2.8.0 addresses this issue.

Created at 1 week ago
issue comment
npm packages error

@323zc please see: https://github.com/lukehaas/RunJS/issues/535

Created at 1 week ago
issue comment
After Loading big data, can't kill process

Try clicking on Clear in the edit menu and then restarting the app.

Created at 1 week ago
issue comment
Unable to access the NPM repository behind a proxy

@silver-mx thanks for the update. Are you able to successfully install NPM packages via the terminal?

Created at 1 week ago
closed issue
Bug - `Pretty` code formatting bug

This Code on formatting with alt + shift + f ,


let arr = [1,2,3];


arr.indexOf(1)

let cplxArr = [
  {id: 1},
  {id: 2},
  {id: 3}
];

cplxArr.findIndex(el => el.id === 1);

produces the following which is wrong.


let arr = [1, 2, 3];

arr.indexOf(1);
arr.indexOf(1)
let cplxArr = [{ id: 1 }, { id: 2 }, { id: 3 }];
let cplxArr = [
cplxArr.findIndex((el) => el.id === 1);

using v 2.2.2.0

Created at 1 week ago
issue comment
Bug - `Pretty` code formatting bug

Resolved in the latest release.

Created at 1 week ago
issue comment
Bug - Pretty code formatting bug

@pjchender this is resolved in the latest release.

Created at 1 week ago
issue comment
Not showing results

@juanjzb please provide your debug log:

Screenshot 2023-03-13 at 16 38 28

Created at 1 week ago

update changelog

Created at 1 week ago
issue comment
Not showing results

Please provide your debit log. You can get this via the help menu.

Created at 1 week ago
issue comment
NPM install utility displays installed packages in search results

@btecu this is documented here: https://runjs.app/docs#tools

Created at 1 week ago
issue comment
[Feature request] Add option to change the language manually

Ok, makes sense.

Created at 1 week ago
issue comment
[Bug] NPM install utility doesn't show installed packages as added

You can specify the version to install in the same way you would via the cli, for example react@17.0.0

Created at 1 week ago
issue comment
[Feature request] Add option to change the language manually

Why do you have your system set to Spanish if you want to use apps in English?

Created at 1 week ago
issue comment
[Feature Request] Don't show result of import when "Show result in execute" is enabled

Turning off runtime values would achieve the result you want:

Created at 1 week ago
issue comment
[Bug] NPM install utility doesn't show installed packages as added

There are some cases where someone would want to update or install a different version of a package they have already added. This behaviour caters for that.

Created at 1 week ago

add iamge

Created at 1 week ago
Created at 1 week ago