ProjectSakura / Mirai

A website to stream Anime and read Manga for free.. Everything is scraped from sources online and we don't need to actually host any videos or images.
Other
46 stars 30 forks source link

Replace usage of request library with node-fetch #25

Open adi-g15 opened 3 years ago

adi-g15 commented 3 years ago

The request package was deprecated in March 2019, and as such suggested alternatives to use for future projects, so i think it would be better shifting to the alternatives, before i start working on it, this change was a part of that, and i think this is good candidate for a PR too.

The choice of node-fetch is only one of the alternative libraries suggested, plus it's API is similar to the client side fetch function which is already supported by most current browsers.

There has been no visible changes on the client side in this PR though 🙂

Apart from above, I added a "dev" script in package.json, since nodemon is listed as dev dependency, it's good to have a quick "yarn dev" command