0.0.8 • Published 5 years ago
@mitchallen/uptime v0.0.8
@mitchallen/uptime
Returns process uptime as a string
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.