npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@ekristoffe/node-red-contrib-os

v0.2.2

Published

Node-Red nodes for obtaining cpu system information.

Downloads

52

Readme

node-red-contrib-os

NPM

Node-Red nodes for obtaining cpu system information.

These nodes utilize the Node.js OS Library to obtain basic operating-system related utility functions.

Install

Run the following command in the root directory of your Node-RED install

npm install node-red-contrib-os

Nodes

OS

Use this node to query the operating system.

Returns the hostname of the operating system.

Returns the operating system name. For example 'Linux' on Linux, 'Darwin' on OS X and 'Windows_NT' on Windows.

Returns the operating system platform. Possible values are 'darwin', 'freebsd', 'linux', 'sunos' or 'win32'.

Returns the operating system CPU architecture. Possible values are 'x64', 'arm' and 'ia32'.

Returns the operating system release.

Returns the endianness of the CPU. Possible values are 'BE' for big endian or 'LE' for little endian.

Returns the operating system's default directory for temp files.

Drives

Use this node to query the hard drives.

Values for size, used and available are expressed in KiB (1024 bytes).

Value for capacity is a number between 0 and 1. Capacity*100 is also known as percentage used.

Uptime

Use this node to return the system uptime in seconds.

CPUs

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

Loadavg

Returns an array containing the 1, 5, and 15 minute load averages.

The load average is a measure of system activity, calculated by the operating system and expressed as a fractional number. As a rule of thumb, the load average should ideally be less than the number of logical CPUs in the system.

The load average is a very UNIX-y concept; there is no real equivalent on Windows platforms. That is why on Windows, loadavg-windows is used to have an approximation of the average load.

Memory

Use this node to query the system''s memory.

Returns the total amount of system memory in bytes, kilobytes, megabytes or gigabytes.

Returns the amount of free system memory in bytes, kilobytes, megabytes or gigabytes.

Returns the memory in use as a percentage.

NetworkIntf

Use this node to get a list of network interfaces on the system.

Note that due to the underlying implementation this will only return network interfaces that have been assigned an address.

Author

Jason D. Harper

Other Informations