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

Unknown urls should be put in different color than bad urls #6

Open phast184 opened 4 years ago

phast184 commented 4 years ago

image

PedroFonsecaDEV commented 4 years ago

Alexander is right. But I suggest removing the "(other)" after the bad. I explain:

88 } catch (err) { 89 console.log(chalk.rgb(210, 0, 0)("bad (other): ", url)); 90 }

Just change line 89 to:

89 console.log(chalk.rgb(210, 0, 0)("bad: ", url));


FETCH FAIL == DEAD LINK == BAD URL

The UNKNOWN is for status that was not checked(300, 201, etc.); The "Else" will handle those. That is not the case of the catch() that is invoked when the fetch() fails, indicating DEAD URLs.

Supercraft888 commented 4 years ago

Thanks for the suggestions both you you!