$ npm init
$ npm install @mitchallen/uptime --save
To test, go to the root folder and type (sans $):
$ npm test
Module
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())
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.