Utility Tool
Installation
From Git
npm install munk-tool --sav-dev
Usage
Debugging
start up server in debug mode
DEBUG=true nodemon src/server.js
start up server without debug mode
nodemon src/server.js
Debug Code
The debug tool takes 3 parameters.
A title, the object, and the status.
Statuses: 'success', 'error', 'warn'
Import the tool.
const util = require('munk-tool');
Use util.debug to debug.
util.debug('Title of Message', object, 'error');
Message Example
success*********DEBUG*********Server is using*********DEBUG********* Object: "3000" TIME: 3/9/2017, 9:23:10 PM
Bump
Bump accepts a semantic version argument and type to increment the version.
Using the version bump:
const util = ;const patch = util;