munk-tool

1.1.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i munk-tool

Weekly Downloads

1

Version

1.1.0

License

ISC

Last publish

Collaborators

  • milemu23