Socket
Socket
Sign inDemoInstall

os-utils

Package Overview
Dependencies
0
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.3 to 0.0.4

4

lib/osutils.js

@@ -5,4 +5,8 @@ exports.getMemory = function(){

exports.countCPUs = function(){
return "16 cores (fake)";
}
exports.getCPU = function(){
return "2% (fake)";
}

2

package.json
{
"name" : "os-utils",
"version" : "0.0.3",
"version" : "0.0.4",
"description" : "an operating-system utility library",

@@ -5,0 +5,0 @@ "url" : "http://oscar-mejia.com",

os-utils
========
OS Utils
an operating-system utility library
## Instalation
One line instaltion with [npm](http://npmjs.org).
npm install os-utils
Then in your code
var os = require('os-utils');
## Usage
The follwoing methods are available:
# Get current memory usage
os.getMemory();
# Get number of CPU
os.countCPUs()
# Get current CPU usage
os.getCPU()
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc