Skip to content

mitchallen/uptime

Repository files navigation

@mitchallen/uptime

Returns process uptime as a string

Continuous Integration Coverage Status Downloads Version License

Installation

$ npm init
$ npm install @mitchallen/uptime --save

Testing

To test, go to the root folder and type (sans $):

$ npm test

uptime

Module

uptime.toHHMMSS() ⇒ string

Factory method

Kind: static method of uptime
Returns: string - that returns uptime as a string in the form of HH:MM:SS
Example (Usage example)

    var uptime = require("@mitchallen/uptime");
 
    console.log(uptime.toHHMMSS())

Repo(s)


Contributing

In lieu of a formal style guide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.

About

Returns process uptime as a string

Resources

License

Stars

Watchers

Forks

Packages

No packages published