개발/Electron
package.json Config 정보 가져오기
LukeHan1128
2023. 4. 20. 20:00
반응형
//package.json
{
"name": "application",
"version": "1.0.0",
"description": "Desktop Application!",
"main": "main.js",
"scripts": {
"start": "electron .",
"build": "electron-builder --windows nsis:ia32"
},
"author": "GitHub",
"license": "CC0-1.0",
"devDependencies": {
"electron": "^23.1.2"
}
}
// main.js
const { app } = require('electron');
console.log(app.getVersion());
console.log(app.getName());
반응형