5
submitted 10 months ago* (last edited 10 months ago) by GustavoM@lemmy.world to c/javascript@programming.dev

Title. I'm trying to compile this but I can't seem to do so with node.js.

Thanks in advance.

you are viewing a single comment's thread
view the rest of the comments
[-] GustavoM@lemmy.world 2 points 10 months ago

Thank you for your explanation. Not "create", but use that specific package in the OP as a command to run it as a "lightweight screensaver" of sorts. And I honestly thought it was possible considering nexe and pkg exists and both can "compile" .js files into a binary. And the possibility of displaying pictures in true color (even in the CLI).

[-] blackstampede@sh.itjust.works 3 points 10 months ago

I think generally when a tool says that it's compiling JavaScript into a binary, it's just packaging it with a lightweight browser basically. Python has kind of the same thing - they have compilers that build executables, but really they're just packaging a Python interpreter with your script.

this post was submitted on 29 Nov 2023
5 points (85.7% liked)

JavaScript

1956 readers
8 users here now

founded 1 year ago
MODERATORS