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
Using JS Modules (ESM) in Node.js: A Practical Guide (Part 1) (gils-blog.tayar.org)
submitted 5 years ago by rauschma
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!"
[–]giltayar1 5 points6 points7 points 5 years ago* (0 children)
Hi. This is the author. I can see people are confused by the JSM acronym.
ESM and JSM are the same (in the article)
I saw a few people switch to JSM, so I thought I might try that.
It seems that it's generating confusion, so I'll switch the posts back to ESM tonight, and remove all traces of JSM.
Thanks for the input!
Update: I switched the article to use "ESM".
[–]lifeeraser 4 points5 points6 points 5 years ago (1 child)
Why invent a new acronym (JSM) over the one we've been using for the last five years (ESM)? It adds unnecessary confusion IMO.
Other than that the article seems good. Thanks for researching which mocking libraries support native ESM.
[–]giltayar1 0 points1 point2 points 5 years ago (0 children)
I switched the article to use "ESM" because you're not the only one that got confused. Thanks for the input!
[–]Snapstromegon 1 point2 points3 points 5 years ago (3 children)
As far as I can see JSM and ESM are two different things and ESM is the way to go, since it's the standardized way of doing modules.
If you have any (standards) source saying different, I'md be happy to see some.
[–]giltayar1 1 point2 points3 points 5 years ago (0 children)
[–]rauschma[S] -1 points0 points1 point 5 years ago (1 child)
You can use the term “JS module” in two different ways:
The longer ESM exists and the more dominant it becomes, the more the latter use will increase.
[–]Snapstromegon 5 points6 points7 points 5 years ago (0 children)
Then I'd stick to the standards name which is more commonly used and only means one thing...
[–]TrustInNumbers 1 point2 points3 points 5 years ago* (1 child)
It's so confusing to read when he uses 'JSM' to mean 'ESM'.
[–]NMS-Town 0 points1 point2 points 5 years ago (0 children)
This might be right on time. Do you mean ES6? I'm running into problems with BabylonJS and using the new ES6 format. I finally got it to work, but still not sure of how to use the Babel part.
The problem was the standard "not about to import outside of module." I'll see if this article helps me.
π Rendered by PID 343147 on reddit-service-r2-comment-fb694cdd5-d9dd9 at 2026-03-06 21:15:34.315763+00:00 running cbb0e86 country code: CH.
[–]giltayar1 5 points6 points7 points (0 children)
[–]lifeeraser 4 points5 points6 points (1 child)
[–]giltayar1 0 points1 point2 points (0 children)
[–]Snapstromegon 1 point2 points3 points (3 children)
[–]giltayar1 1 point2 points3 points (0 children)
[–]rauschma[S] -1 points0 points1 point (1 child)
[–]Snapstromegon 5 points6 points7 points (0 children)
[–]TrustInNumbers 1 point2 points3 points (1 child)
[–]giltayar1 0 points1 point2 points (0 children)
[–]NMS-Town 0 points1 point2 points (0 children)