News for hackers. Stuff that matters.
Re:NPM and NodeJS should do more to make ES Modules easy to use by jajag on Thursday June 20, 2024 @11:12AM (#40739625)
> But I do believe they got the syntax wrong - should have been "from fs import { readFile }" so that auto-complete works.

Personally, I prefer the "import x from y" format because it makes it easier to visually scan where an import is coming from; fair point about auto-complete though.

There are no comments on this comment yet.