Skip to content

LevanceWam/Wamble

Repository files navigation

Wamble

Codeship Status for LevanceWam/Wamble

Installing

To install this package you want to:

npm install Wamble --save

You then want to go to your server.js and Every where esle that you want your Debugger and place this:

const tool = require('Wambles');

Usage

This is your debuggers code

  util.debug('You're message here ', obj);

 // Gather all of your food
exports.findAll = (err, success) => {
  groceries.cart.findAll().then(success).catch(err);
  util.debug('This is the food I have in my cart', success);
};

when you turn on your server and run that code it should activate like this.

------------------------------
server active on 3000

------------------------------
 Thu Aug 11 2016 23:19:46 GMT-0400 (EDT)

------------------------------
I found this one thing and its ok 1

------------------------------
 Thu Aug 11 2016 23:20:01 GMT-0400 (EDT)

Unit testing Debugger

Make sure to run:

npm i mocha
mocha --reporter landing

then type in either

mocha

npm test

Both will test but with the reporter it make it a little fun.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published