3 ms·
> 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 f
by jajag 2y 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.