[plugin] Node-webkit Node.js OS module

Post your completed addons to share with the community

Post » Thu Dec 06, 2012 10:35 pm

Plugin provides a few basic operating-system related utility functions using node.js OS module with node-webkit export.

Plugin here

Demo here

.capx here


More detail about exposed functions here , i implemented all of the functions provided by the module.

Plugin contains just expressions which provide some system basic system info.

I added seven more expressions:

loadavg1; Returns value containing the 1 minute load average.
loadavg5; Returns value containing the 5 minute load average.
loadavg15; Returns value containing the 15 minute load average.
cpusnum; Returns number of cpu's.
cpusmodel; Returns model of cpu.

cpusString; Returns an string containing array of objects containing information about each CPU/core installed: model, speed (in MHz), and times (an object containing the number of CPU ticks spent in: user, nice, sys, idle, and irq).

networkInterfacesString; Get a string containing list of network interfaces.


Please note that some expressions are available but they returns arrays or objects, not strings or numbers:

loadavg - Returns an array containing the 1, 5, and 15 minute load averages. (exposed with loadavg1, loadavg5, loadavg15 expressions)

cpus - Returns an array of objects containing information about each CPU/core installed (exposed some data with cpusmodel and cpusnum expressions, get a string representation using cpusString )

networkInterfaces - Get a list of network interfaces; returns an object (exposed with networkInterfacesString, get a string representation)

Enjoy playing and testing,

Cheers!JohnnySheffield2012-12-07 11:32:32
Be nice until it's time to not be nice
B
36
S
9
G
9
Posts: 293
Reputation: 6,652

Post » Fri Dec 07, 2012 11:30 am

Updated the plugin;

Added:


cpusString - Returns an string containing array of objects containing information about each CPU/core installed: model, speed (in MHz), and times (an object containing the number of CPU ticks spent in: user, nice, sys, idle, and irq).

networkInterfacesString - Get a string containing list of network interfaces.

These expressions are using JSON.stringfy, so you'll basically get a string representation, a messy, long string representation. Not sure anybody will use this, but hey, why not?

Changed plugin icon a little bit! :)


Cheers!
Be nice until it's time to not be nice
B
36
S
9
G
9
Posts: 293
Reputation: 6,652

Post » Tue Nov 18, 2014 10:43 am

:D
B
11
S
2
Posts: 24
Reputation: 753

Post » Wed Nov 19, 2014 11:57 am

@chloroplastgames

I haven't used this plugin in a while. If you have any feedback on how this plugin behaves, please post it here, hopefully i'll improve it if needed.
Be nice until it's time to not be nice
B
36
S
9
G
9
Posts: 293
Reputation: 6,652


Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 3 guests