os-utils
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -5,4 +5,8 @@ exports.getMemory = function(){ | ||
exports.countCPUs = function(){ | ||
return "16 cores (fake)"; | ||
} | ||
exports.getCPU = function(){ | ||
return "2% (fake)"; | ||
} |
{ | ||
"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() |
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
2310
12
34
0