Simply putting the status from node os into json and returning them to request.
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
.travis.yml
LICENSE
README.md
example.js
index.js
package.json
test.js

README.md

connect-os-stats

Simply putting the status from node os into json and returning them to request.

build status

npm install connect-os-stats

Express example

var app = require('express')();

var stats = require('./index');

app.get('/stats', stats());

app.listen(3010);

This module does not have to be used with connect or express. It supports method definition (req, res); as long as res supports.

setHeader / write / end

Bitdeli Badge