Giter Club home page Giter Club logo

Comments (9)

roopakv avatar roopakv commented on August 21, 2024

@Richienb i was going to try isomorphic-unfetch. Any reason you recommend got?

I will get the package updated this weekend

from google-photos.

Richienb avatar Richienb commented on August 21, 2024

@roopakv My motivation for recommending got is that it's a really feature-rich and easy-to-use request library. However, to also target browsers while remaining lightweight, I would recommend using ky with it's ky-universal Node.js compatibility layer which is essentially a simplified fetch wrapper with error handling and URL search parameter encoding built-in.

from google-photos.

roopakv avatar roopakv commented on August 21, 2024

https://www.npmtrends.com/isomorphic-fetch-vs-ky-vs-got-vs-axios-vs-ky-universal

Based on this you are right, got is VERY popular, but to remain small for browsers i think isomorphic-unfetch or axios seem smaller and more popular.

thoughts?

from google-photos.

Richienb avatar Richienb commented on August 21, 2024

@roopakv isomorphic-unfetch is a cross-platform implementation of the window.fetch API. ky, on the other hand wraps the fetch API in a more simplified interface. This is why I recommend using it. Popularity-wise, they're not too far apart either.

from google-photos.

roopakv avatar roopakv commented on August 21, 2024

@Richienb hmm, i guess even with ky i will need to add ky-universal but I do like the don't support too.

I'll try get to this this weekend, unless you want to send a PR

from google-photos.

Richienb avatar Richienb commented on August 21, 2024

I do like the don't support too.

@roopakv What do you mean?

from google-photos.

roopakv avatar roopakv commented on August 21, 2024

aahh autocorrect. *deno support

from google-photos.

Richienb avatar Richienb commented on August 21, 2024

@roopakv In the meantime, do we also want to be migrating the codebase to Typescript?

from google-photos.

roopakv avatar roopakv commented on August 21, 2024

Yeah that'sb another to do. Probably will do this after

from google-photos.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.