UNPKG

on-server

Version:

Run shell commands in the browser

15 lines (14 loc) 578 B
#! /usr/bin node "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); var uuid_1 = require("uuid"); var fs_1 = __importDefault(require("fs")); console.log("Generating password"); var pass = uuid_1.v4(); fs_1.default.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");