Tobias Hopp 42de818a2f Update
Took 12 minutes
2021-09-13 21:52:08 +02:00

28 lines
704 B
JavaScript

const Arpping = require('./index.js');
class Test {
constructor() {
this.arpping = new Arpping();
this.tryMe(() => this.arpping.discover(null, (err, hosts) => {
if (err) return console.log(err);
console.log('success');
}));
}
// tryMe() {
// this.arpping.discover()
// .then(hosts => console.log('success'))
// .catch(err => console.log(err));
// }
// tryMe() {
// this.arpping.discover(null, (err, hosts) => {
// if (err) return console.log(err);
// console.log(hosts);
// });
// }
tryMe(callback) {
callback();
}
}
const test = new Test();