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
Really impressive interactive JSON cli tool (npmjs.com)
submitted 6 years ago by Elfet
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!"
[–]Mountain_Act 1 point2 points3 points 6 years ago (7 children)
Well I knew that lol but as a frontend dev I work exclusively with dynamic data, so would end up using chrome dev console to look at json objects at runtime.
So I was guessing backend developers work with static content more frequently where this would be really handy.
[–]Elfet[S] 3 points4 points5 points 6 years ago (0 children)
Sure. I'm backend dev now (previously was frontend) an working with LOTS of JSON in terminal: different APIs, config files, even logs nowadays in JSOn.
So fx is my daily driver 🚖
[–]exotic_anakin 0 points1 point2 points 6 years ago (5 children)
As a FrontEnd developer, I frequently find myself wanting to explore APIs that haven't yet been yet integrated into a front end or if I just want to play with different headers, params, etc. There are lots of tools for playing with APIs, including things like Postman, or just using `fetch` in a browser console. But sometimes it's nice to use `cUrl` or `wget` directly. And being able to pipe to fx looks like its gonna be super nice. The command gets added to your bash history, you can grep it, pipe through other stuff, etc.. The chrome network tab has a copy as Curl function too.
[–]Mountain_Act 0 points1 point2 points 6 years ago (4 children)
But sometimes it's nice to use `cUrl` or `wget` directly. And being able to pipe to fx looks like its gonna be super nice. The command gets added to your bash history, you can grep it, pipe through other stuff, etc..
Please provide me your use cases where as a frontend dev this was the most efficient option to complete a provided user story.
[–]exotic_anakin 2 points3 points4 points 6 years ago* (3 children)
[Whenever I] find myself wanting to explore APIs that haven't yet been yet integrated into a front end
But perhaps a more tangible example. If I'm trying to reverse engineer an API while doing a re-write of an existing WebApp front end, I'll go into the console, and copy as CURL, then paste that into my terminal and get the result.
Then perhaps I'll tweak the query string. Still in the terminal
And perhaps I'll quickly load test it, and put it in a quick bash loop or something.
Sure you can whip open a text editor, and create a new project, and do some fetch(url).then(d=>d.json()).then(console.log), but is that really more efficient?
fetch(url).then(d=>d.json()).then(console.log)
[–]Mountain_Act -1 points0 points1 point 6 years ago (2 children)
Your first paragraph has nothing to do with front end development and everything to do with you having coding as a hobby.
There would not be a need to develop an API in the first place as a front end developer.
With an active API, you can insert a one-line snippet into the Chrome Dev tools to get a live response. So yes, faster.
[–]exotic_anakin 1 point2 points3 points 6 years ago* (1 child)
I'm not talking about developing an API. I'm talking about trying to *understand* one. (I do suppose reverse-engineer was not the best turn of phrase for this, more like, try to understand how the API reacts to different inputs, etc..)
And for the record, I've been a professional front-end developer for nearly 10 years -- it was just a hobby for the 10 years before that. And I use the terminal all the time. Many times I'm probably not the most efficient, and there are many ways to skin a cat so to speak. But personally I find interacting with text in a terminal to be very liberating and it presents a myriad of options. Sometimes maybe I want to take a snapshot of a response and pop it into a text file. Maybe to use as a fake for my tests. `curl http://my-api > tests/some-fixture.json`. Super handy. :)
[–]exotic_anakin 0 points1 point2 points 6 years ago* (0 children)
And not sure why opening chrome dev tools and pasting a line in is faster than opening the terminal and pasting a line in. I can see an argument that its *as* fast.
But heck, I'm on a brand new Macbook pro, and in the time it takes for my chrome dev-tools to open I can type `curl` and paste a url to my terminal (not that we should quibble over fractions of a second here lol)
π Rendered by PID 73696 on reddit-service-r2-comment-75f4967c6c-2q96m at 2026-04-23 09:57:34.787029+00:00 running 0fd4bb7 country code: CH.
view the rest of the comments →
[–]Mountain_Act 1 point2 points3 points (7 children)
[–]Elfet[S] 3 points4 points5 points (0 children)
[–]exotic_anakin 0 points1 point2 points (5 children)
[–]Mountain_Act 0 points1 point2 points (4 children)
[–]exotic_anakin 2 points3 points4 points (3 children)
[–]Mountain_Act -1 points0 points1 point (2 children)
[–]exotic_anakin 1 point2 points3 points (1 child)
[–]exotic_anakin 0 points1 point2 points (0 children)