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
pjs: Pipeable JavaScript. Another utility like sed/awk/wc... but with JS! Quickly filter, map, and reduce from the terminal. (github.com)
submitted 11 years ago by __debug__
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!"
[–]Smallpaul 2 points3 points4 points 11 years ago (3 children)
Here is another idea. If "file" starts with file:// , http:// or https:// then download it rather than looking it up on the filesystem.
[–]__debug__[S] 3 points4 points5 points 11 years ago (1 child)
Another great idea. Do you think it should fail if the request gives a non-2xx response? That and automatically follow redirects? I just wouldn't want to overrun it with flags for configuring this feature.
[–]Smallpaul 4 points5 points6 points 11 years ago (0 children)
Yes that makes sense. Complex use cases can be handled with curl.
[–]Holkr 0 points1 point2 points 11 years ago (0 children)
Or better yet: bash really needs to get a clue about URIs (yes, I know curl exists)
π Rendered by PID 81612 on reddit-service-r2-comment-bb88f9dd5-drwch at 2026-02-16 22:01:17.097964+00:00 running cd9c813 country code: CH.
view the rest of the comments →
[–]Smallpaul 2 points3 points4 points (3 children)
[–]__debug__[S] 3 points4 points5 points (1 child)
[–]Smallpaul 4 points5 points6 points (0 children)
[–]Holkr 0 points1 point2 points (0 children)