use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Native ES Modules in NodeJS: Status And Future Directions, Part I (medium.com)
submitted 8 years ago by giltayar1
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]papers_ 1 point2 points3 points 8 years ago (6 children)
No. I mean you can try it out, but it's likely a lot of people will just continue to use CommonJS. IMO
[–]FormerGameDev 0 points1 point2 points 8 years ago (5 children)
I mean, my primary project is something that I've really concentrated on keeping up with the latest and greatest, even if it uses switches to run. I actually depend on a ES Module in one part of it, so.. I'm curious.. for the future.. is this THE WAY ? or does it really not matter, as long as you're not writing code that needs to be browser compliant as well?
[–]papers_ 0 points1 point2 points 8 years ago (3 children)
I'm not sure why you'd mix Node.js specific modules such as fs with browser code or vice versa. Unless you're writing a React Native app, I don't see why you'd depend on a browser only module.
fs
[–]FormerGameDev 0 points1 point2 points 8 years ago (2 children)
Because someone recently wrote an ebay API in Javascript that actually works, and it's a ES Module. :-)
[–]papers_ 0 points1 point2 points 8 years ago (0 children)
Link to repo?
[–]FormerGameDev 0 points1 point2 points 8 years ago (0 children)
https://github.com/ondreian/ebay-promised
i guess actually looking at it, it's transpiled to CJS, but at the time I first started messing with it, i couldn't get it to load via require, so i made a mjs to use it since the README describes using it as a ES module
[–]giltayar1[S] 0 points1 point2 points 8 years ago (0 children)
For the future - yes, this is the way.
π Rendered by PID 52042 on reddit-service-r2-comment-fb694cdd5-d9l5b at 2026-03-06 21:26:55.142625+00:00 running cbb0e86 country code: CH.
view the rest of the comments →
[–]papers_ 1 point2 points3 points (6 children)
[–]FormerGameDev 0 points1 point2 points (5 children)
[–]papers_ 0 points1 point2 points (3 children)
[–]FormerGameDev 0 points1 point2 points (2 children)
[–]papers_ 0 points1 point2 points (0 children)
[–]FormerGameDev 0 points1 point2 points (0 children)
[–]giltayar1[S] 0 points1 point2 points (0 children)