News for hackers. Stuff that matters.
Re:Today’s Javascript, from an outsider’s perspective by mikeryan on Tuesday May 26, 2020 @12:45AM (#23307511)
Is it me or is the real problem that someone wrote a package and quickly wrote use “import ...“ instead of writing “const x = require(“...“

Node works fine out of the box from the command line, modules just need to have the correct instructions for the README.

Re:Today’s Javascript, from an outsider’s perspective by yawaramin on Tuesday May 26, 2020 @01:01AM (#23307578)
That wouldn't have helped anyway. The file was written in TypeScript. Node would have barfed immediately.
Re:Today’s Javascript, from an outsider’s perspective by _-o-_ on Tuesday May 26, 2020 @02:54PM (#23315054)
Libraries with TS codebase almost always have a prebuilt bundle.