Javascript host environment limitation

Viewed 38

I have been working on js based tech stacks for years like browser, nodejs, etc. I know that js hosted-env has different methods and approaches for example fetch is used on browser api and http module is used in nodejs.

I see some node modules like Got can be used instead nodejs built-in require(‘http’) library.

Let's say we want to build a module that would be used instead fetch, would we have to use fetch method at the inside of our module?

I’m wondering that what are our limitations regarding this modules?

Up to which point we can make our own modules?

How much we’re dependent host-environments built-in modules (browser or nodejs api)

Why we can’t make a docker-smilar tools? Or we can?

What are our freedom limits?

I just multipled the questions to show my point of view.

Thank you in advance

0 Answers
Related