lorenzh / fut-api

Ultimate Team API - FIFA 16 - unofficial
MIT License
53 stars 12 forks source link

Browserify support? #9

Open gambitrex opened 7 years ago

gambitrex commented 7 years ago

Congrats for your great job! Just wondering if you are considering to support browserify. It would be great to run directly on browser instead of running it over Node.js. http://browserify.org/ I tried to browserify your package, but when I try to log in, I got many redirects. Seems like the API is no longer able to send cookies when performing the next request.

EDIT: my idea is to create a chrome extension, so CORS would be avoided.

gregbarcza commented 7 years ago

I don't think it's going to work in the browser. request.js (the http lib of this repo) is relies on node.js http module. Otherwise what is the meaning to run it in the browser? If you would like to make a desktop app with GUI I suggest you to use electron: http://electron.atom.io/

Guih-sistemas commented 7 years ago

That's solution works only with node.js installed ?

gregbarcza commented 7 years ago

It's a node.js package yes!