0

I know it's not possible to execute shell commands on the clients browser via js.But I was wondering if it's possible if in the client side is not a browser instead an application that just fetchs webpages? thanks for your time guys!

2

1 Answer 1

1

The best would be to use a nodejs app

Node can be used to run javascript for everything in your computer, so, answering your question, you could, say, make an aplication that fetches webpages and run selected commands in the code that would be rejected by the browser.

But, if actually your goal is to just use javascript like a general use interpreted language (like say, python), you can just use js with node normally (ie, make your foo.js file and run from command line node ./foo.js

You can also use it as a server for web applications

    Start asking to get answers

    Find the answer to your question by asking.

    Ask question

    Explore related questions

    See similar questions with these tags.