Hacker News new | ask | show | jobs
by jajag 728 days ago
> 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.