Started wizard implementation

This commit is contained in:
Pax1601
2023-12-21 18:06:59 +01:00
parent 44295673dc
commit 92b1a46e8a
12 changed files with 613 additions and 655 deletions

View File

@@ -0,0 +1,12 @@
const portfinder = require('portfinder')
export function checkPort(port, callback) {
portfinder.getPort({ port: port, stopPort: port }, (err, res) => {
if (err !== null) {
console.error(`Port ${port} already in use`);
callback(false);
} else {
callback(true);
}
});
}