1.1.0 • Published 7 years ago

munk-tool v1.1.0

Weekly downloads
-
License
ISC
Repository
-
Last release
7 years ago

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');
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 = require('../util-tool.js');
const patch = util.bump('1.1.1', 'patch');