import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import { library } from "@fortawesome/fontawesome-svg-core";
import { fas } from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome";
var userName = process.env["USERPROFILE"];
console.log(userName);
library.add(fas);
Vue.component("font-awesome-icon", FontAwesomeIcon);
Vue.config.productionTip = false;
new Vue({
router,
render: (h) => h(App),
}).$mount("#app");
its showing undefined for "userName"..this is a vue js app but is there any way i could use this to work
nodejs
const os = require('os')
const username = os.userInfo().username
console.log(username)