Comments (9)
@Richienb i was going to try isomorphic-unfetch. Any reason you recommend got?
I will get the package updated this weekend
from google-photos.
@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.
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.
@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.
@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.
I do like the don't support too.
@roopakv What do you mean?
from google-photos.
aahh autocorrect. *deno support
from google-photos.
@roopakv In the meantime, do we also want to be migrating the codebase to Typescript?
from google-photos.
Yeah that'sb another to do. Probably will do this after
from google-photos.
Related Issues (20)
- support for bulk uploads HOT 5
- I don't know how to specify the token for method Photos() ? HOT 2
- How to automatically handle expired access tokens ? HOT 8
- How to list the photos from an album? HOT 2
- TypeScript for Google API HOT 1
- Use variables rather than functions to set data
- Can't use your package. HOT 2
- Can't upload file HOT 3
- How to find the "albumID" manually? HOT 3
- TimeoutError: Request Timed Out when uploading 3.5MB file HOT 9
- File size is greater than 2GB
- Feature Request: mediaItems:batchGet
- Filters class is missing `excludeNonAppCreatedData` option
- Finished with status: 'timeout' HOT 3
- photos.albums.list doesn't seem to work at all
- Problems with MediaItems.list HOT 2
- code is not defined HOT 2
- wrong function name on readme HOT 1
- sharedAlbums.list Error 400 'Bad Request'
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from google-photos.