adding custom java script to project #782

Open
opened 2026-01-29 16:48:29 +00:00 by claunia · 0 comments
Owner

Originally created by @danammeansbear on GitHub (Apr 27, 2022).

🚨 The issue tracker is not for questions 🚨

The issue tracker is not for questions. Please ask questions on https://stackoverflow.com/questions/tagged/electron.net or via chat in https://gitter.im/ElectronNET/community.

how to use add custom js code?

var os = require("os");

var bytesAvailable = os.totalmem(); // returns number in bytes
// 1 mb = 1048576 bytes
console.log("Total memory available MB :" + (bytesAvailable/1048576) );

the code above is what i want to get

Originally created by @danammeansbear on GitHub (Apr 27, 2022). 🚨 The issue tracker is not for questions 🚨 The issue tracker is not for questions. Please ask questions on https://stackoverflow.com/questions/tagged/electron.net or via chat in https://gitter.im/ElectronNET/community. how to use add custom js code? ``` var os = require("os"); var bytesAvailable = os.totalmem(); // returns number in bytes // 1 mb = 1048576 bytes console.log("Total memory available MB :" + (bytesAvailable/1048576) ); ``` the code above is what i want to get
claunia added the question label 2026-01-29 16:48:29 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#782