Supercraft888 / lFinder

An open source command line interface link checker that will look for dead links. Made for DPS909 for release 0.1
ISC License
1 stars 4 forks source link

Bug fixed && improvements #2

Closed PedroFonsecaDEV closed 4 years ago

PedroFonsecaDEV commented 4 years ago

1) The bug was just when you were catching the fetch; instead of console.log the link with status as a BAD LINK, you were writing on the console the error. (fetch fail == dead link).

2) ADD TIMEOUT TO OPTIMIZATION In the fetch request, I inserted a new key(timeout: 1500), meaning the fetch will await a link response for just 1.5 secs (some dead links can make your fetch wait a lifetime.

3 I'm adding a gitignore file to prevent us from uploading/downloading the node_modules

Best Regards. Pedro. See you.

Supercraft888 commented 4 years ago

Thank you so much! I'll look into these more tomorrow myself.