Skip to content
Sign upLog in
← Back to Community

Node.js REPL

Profile icon
Coder100Hacker

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.

Voters
Profile icon
Spotandjake
Profile icon
Wilke000
Profile icon
dabs364
Profile icon
mkw
Profile icon
jawwson
Profile icon
sycrepl
Profile icon
AndreDouglas
Profile icon
ChungusFam
Profile icon
lukamzevashvili
Profile icon
Highwayman
Comments
hotnewtop
Profile icon
Dart

Why though

Profile icon
Dart

And you asked three times for upvotes like chill out

Profile icon
Coder100

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

@Zexogon

Profile icon
Dart

@Coder100
>w> ok

Profile icon
Coder100

See

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

@Zexogon

Profile icon
Dart

@Coder100
o k

Profile icon
Coder100

Thx

@Zexogon

Profile icon
Coder100

But 696 Is better just saying

@Zexogon

Profile icon
ChungusFam

Why did you make this?

Profile icon
Coder100

Uhhh... read the post?

@ChungusFam

Profile icon
SvenDeveloper

But this is Javascript, not python

Profile icon
Coder100

Yeah, that's why it is best :)

@SvenDeveloper

Profile icon
Highwayman

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

Profile icon
Coder100

Hmmmm ok like type .run to run it ok

@Highwayman

Profile icon
Highwayman

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

Profile icon
Highwayman

Lol. Nice! :)

Profile icon
Coder100

Thanks!

@Highwayman

Profile icon
Aryasateesh1

it does not work