DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
node check if not connected to internet
let isNotConnected = !await require('dns').promises.resolve('google.com').catch(()=>{});
PREVIOUS
NEXT
Tagged:
#node
#check
#connected
#internet
ADD COMMENT
Topic
COMMENT
Name
9+8 =
Submit