2.0.3 • Published 12 years ago

upy v2.0.3

Weekly downloads
19
License
-
Repository
github
Last release
12 years ago

Upy

upy is a easy to use machine uptime module for node.js build C++. Have been tested under Mac and Linux system. Don't have any Windows support.

installation

  1. install npm curl http://npmjs.org/install.sh | sh
  2. npm install upy

build

node-waf configure build

test the installation

  1. npm install -g mocha
  2. mocha test/values.js

usage

Quick example using upy,

var upy = require('./upy');

console.log( upy.uptime() ); // Uptime x day(s), x hour(s), x minute(s), x second(s)

functions

upy.uptime()			// returns a string telling you the uptime
upy.days()				// returns uptime in days
upy.hours()				// returns uptime in hours
upy.minutes()			// returns uptime in minute
upy.seconds()			// returns uptime in seconds
upy.timestamp()			// returns uptime as a timestamp (seconds)

copyright and license

upy is release under MIT license.

Copyright 2011 Fredrik Forsmo

2.0.3

12 years ago

2.0.2

12 years ago

2.0.1

12 years ago

2.0.0

12 years ago

0.1.2

13 years ago

0.1.1

13 years ago

0.1.0

13 years ago