Got: Browser support

Created on 9 Aug 2018  路  7Comments  路  Source: sindresorhus/got

I use GOT on some of my node projects and I really like it.
I would like to have it working on some of my isomorphic ones like one that uses Next.js.
Would it be possible to make it work?
What would be the challenges and difficulties of giving browser compatibility?

Most helpful comment

You really need to check out https://github.com/sindresorhus/ky :heart:

All 7 comments

That is a non-goal for this project, but it should in theory still work in the browser if you run it through Browserify or Webpack (as they bundle shims for Node.js APIs). I remember Got v7 working in the browser after being run through Browserify.

I'll give it a try again, but I remember getting errors about fs not being accessible.
I'll report here with my findings.

Should "browser support" be added to the Comparison table?
https://github.com/sindresorhus/got#comparison

I think it should.
I will at least clarify this subject.

You really need to check out https://github.com/sindresorhus/ky :heart:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gunta picture gunta  路  54Comments

cesarfd picture cesarfd  路  30Comments

darksabrefr picture darksabrefr  路  25Comments

vbourgeois picture vbourgeois  路  24Comments

PopGoesTheWza picture PopGoesTheWza  路  47Comments