open-index/open-npm huggingface dataset:
npm package: @sex-pomelo/sex-pomelo-monitor
Description: monitor the operating-system and process information
Author: halfblood369
Latest version: 0.3.12

## Monitor

Simple, comprehensive monitoring tool for operating-system and process in nodejs.
* Tags: nodejs, monitor

## Installation

	$ npm install -g @sex-pomelo/sex-pomelo-monitor

## Usage

	var monitor = require(@sex-pomelo/sex-pomelo-monitor);

	var param = {
		pid: process.pid,
		serverId: 'node-1'
	};

	monitor.psmonitor.getPsInfo(param, function(data) {
		console.log('process information is :', data);
	});

	monitor.sysmonitor.getSysInfo(function(data) {
		console.log('operating-system information is :', data);
	});

## Features

  * Simple and comprehensive
  * Only for linux or mac 
  * SystemMonitor aims to monitor system info, such as hostname, loadAvg, mem, CPU(I/O), DISK(O/I) etc, according to the command 'iostat'
  * ProcessMonitor aims to monitor process info, such as serverId, serverType, cpu%, mem%, vsz, rss etc, according to the command 'ps auxw'


## License

(The MIT License)

Copyright (c) 2012 Netease inc. and other contributors.

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
npm package: @sex-pomelo/sex-pomelo-protocol
Description: Encode and decode binary protocol for Pomelo framework Server( **not use client, only run in node runtime** ). Nodejs version need >= 8.x
Latest version: 1.0.0

#sex-pomelo-protocol

Encode and decode binary protocol for Pomelo framework Server( **not use client, only run in node runtime** ). Nodejs version need >= 8.x 

More details about Pomelo Protocol, please refer
[Pomelo Protocol](https://github.com/NetEase/pomelo/wiki/Pomelo-%E5%8D%8F%E8%AE%AE)
and
[Pomelo data compression](https://github.com/NetEase/pomelo/wiki/Pomelo-%E6%95%B0%E6%8D%AE%E5%8E%8B%E7%BC%A9%E5%8D%8F%E8%AE%AE).


# ChangeLog

## 1.0.0 / 2025-07-08

* update deps
* opt Message.encode ( use `pomelo-coderx` )
* add types

**Break Change**

* `route` must ascii string.


## older
 * 0.1.10 fix opt-in package name error
 * 0.1.9, Opt-in for performance and spec compliance
   * `npm install --save-optional @sex-pomelo/pomelo-coderx` : Allows to efficiently perform operations for Message.encode
 * 0.1.8, Improve Package / Message decode performance
 * 0.1.7, performance opt. Nodejs version need >= 8.x