Share your repls and programming experiences

← Back to all posts
Node.js REPL
h
Coder100 (1296)

NODE.JS repl

So @Andi_Chin made this and then @SvenDeveloper "made it better".
I'm here to make it best!

Revolutionary tactics

I think python good. But I must use node.js to make the code look neat and clean and expressive

const {_read, _eval, _print, _loop} = require("./repl.js");
_loop(
  _print(
    _eval(
      _read()
    )
  )
)

Looks much better than python...just sayin'

Enjoyment

If you look deeper into the code, we have 100% satisfaction guarantees. All the code is made so if the statement is like

true

Then it will return true and not be empty.
Also, errors will not kill the program, and I have added colors and also I have made it look 90% like my command prompt. Also, it is 90% accurate as to compiling.

node -e console.log('hi');

will run inline code. That is what is nearly happening here as well.

TO SUPPORT NODEJS, VOTE THIS POST UP!

Actually please don't. I like 690 a lot.

Commentshotnewtop
Zexogon (848)

And you asked three times for upvotes like chill out

Coder100 (1296)

Lol idk but now I'm at 690 so I'll remove that @Zexogon

Coder100 (1296)

See

Actually please don't. I like 690 a lot.

@Zexogon

Coder100 (1296)

But 696 Is better just saying @Zexogon

ChungusFam (9)

Why did you make this?

SvenDeveloper (20)

But this is Javascript, not python

Coder100 (1296)

Yeah, that's why it is best :) @SvenDeveloper

Highwayman (1041)

Hmmmm. Maybe figure out a way to support the continuation of a line, like if I did
function x() {

Coder100 (1296)

Hmmmm ok like type .run to run it ok @Highwayman

Highwayman (1041)

@Coder100 yeah! Like keep a context like with regular node. Or maybe they already do that?