Verificación de nodo si no está conectado a Internet
let isNotConnected = !await require('dns').promises.resolve('google.com').catch(()=>{});
Bloody Booby
let isNotConnected = !await require('dns').promises.resolve('google.com').catch(()=>{});