ezNode NW.js Plugin - Forum

Forum Navigation
You need to log in to create posts and topics.

ezNode NW.js Plugin

@roccocogliano

Here's a NW.js plugin that I created for a project a while back..

EZ Node - This plugin is a collection of useful NWjs - Node actions.
Download
Web page

A demo project is included, which includes the source code only, not all files needed for the project to run.  I assume you already have a folder setup for your NW.js project, then simply copy the project file into the package.nw folder

ezNode_GetPlatform
Returns a string identifying the operating system platform. The value is set at compile time. Possible values are 'aix', 'darwin', 'freebsd', 'linux', 'openbsd', 'sunos', and 'win32'.
ezNode_GetRelease
Returns the operating system as a string.
ezNode_GetTmpDir
Returns the operating system's default directory for temporary files as a string.
ezNode_GetTotalMem
Returns the total amount of system memory in bytes as an integer.
ezNode_GetOsFreeMem
Returns the amount of free system memory in bytes as an integer.
ezNode_GetOsType
Returns the operating system name
ezNode_GetOsUptime
Returns the system uptime in number of seconds.
ezNode_GetOsUserInfo
Return Value: It returns an object that specifies the information about the current effective user, which contains username, uid, gid, shell, homedir like values.
ezNode_GetOsNetworkInterfaces
Returns an object containing network interfaces that have been assigned a network address.
Each key on the returned object identifies a network interface. The associated value is an array of objects that each describe an assigned network address.
ezNode_GetHostName
Returns the host name of the operating system as a string.
ezNode_GetNwjsVersion
is set with NW.js’s version.
ezNode_GetNwjsFlavor
is set to ‘sdk’ when the binary is SDK build, or ‘normal’ when the binary is normal build.
ezNode_GetNodeVersion
returns the Node.js version string.
ezNode_GetChromeiumVersion
is set with the chromium version which NW.js is based on.
ezNode_GetCommitHash
Git Commit Hash ID of the build
ezNode_GetMemoryUsage
The process returns an object describing the memory usage of the Node.js process measured in bytes
ezNode_GetLocalAppData

luishp, Vadim and 2 other users have reacted to this post.
luishpVadimroccocoglianosusan

@darbdenral

Thank you so much for the new plugin!!!

Darbdenral has reacted to this post.
Darbdenral

Thank you so much @darbdenral !

I'll try it as soon as I can
Thanks again

Darbdenral has reacted to this post.
Darbdenral