on-server
Version:
Run shell commands in the browser
12 lines (9 loc) • 335 B
text/typescript
import { v4 as uuidv4 } from "uuid";
import fs from "fs";
console.log("Generating password");
const pass = uuidv4();
fs.writeFileSync("config/password", pass);
console.log("The password is " + pass);
console.log("on-server has been succesfully installed");
console.log("to start it run on-server-start");