const PREFIX = "10.100.";
const MACHINES = ["11.1","11.2","11.3","21.1","21.2","21.3","31.1","31.2","31.3","41.1","41.2","41.3","51.1","51.2","51.3"];
const isReachable = require('is-reachable');
for (const item of MACHINES) {
const IP = PREFIX + item;
if (!(await isReachable(IP))) {
warn("Unable to reach " + IP);
continue;
}
}
This is the code i currently have for a javascript program i am trying to use IsReachable as said here but the program keeps saying require is not recognised. Am i missing a certain import? i have installed everythin specified in the above URL. Thx for any help