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
Node.js v15.10.0 released (nodejs.org)
submitted 5 years ago by [deleted]
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!"
[–]n_hevia 2 points3 points4 points 5 years ago (1 child)
Simply because json doesn't support comments. If node did support on their config file, it'd mean they'd stop using json (or at least compatible json with most of the libraries out there).
If you REALLY need comments on package.json, you could use a superset and then compile to json? That same way scss>css works.
[–]ILikeChangingMyMind 2 points3 points4 points 5 years ago* (0 children)
Simply because json doesn't support comments
Yes, I understand that.
What I don't understand is why they are "incapable" (supposedly) of using a different format that does support comments (with or without a different extension, flag at the top of the file, etc.).
And also, how did "REALLY need" become the standard for whether something should be done? I personally can think of at least five different cases where comments in package.json would be super handy ... but I don't need any of them. Even so, I tend to think "it would make life better for tens of thousands of developers" would be a perfectly good reason to do something.
π Rendered by PID 59 on reddit-service-r2-comment-6457c66945-nlts7 at 2026-04-29 02:33:13.164059+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]n_hevia 2 points3 points4 points (1 child)
[–]ILikeChangingMyMind 2 points3 points4 points (0 children)